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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be9b10-31986.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be9b10-31986.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?