How to use v-for for mpvue: key does not sort by index index, but needs to be sorted by id

is the target array of v-for as follows:
let arr = [{id: "0", name: "a"}, {id: "2", name: "c"}, {id: "1", name: "b"}
traverse the above array in html using the following words:
VFF for = "item in arr": key= "item.id"
the correct results should be sorted by id and should show ab. C
but it is actually sorted according to the index index, and the result is a
. How should I write it?


process the arr, sort it in the order you want, and then go to v-for

.
Menu