Using hybrid mobile development, the parsing order of js array is inconsistent in ios android.

if the generated arrays are not sorted, the normal situation is to parse one by one according to the array order.
the problem arises. At present, my android phone parsing is like this, ios mobile phone parsing in reverse order.

[
    {id: 1, name:"a", type: 0, icon: "100", order: -1}
    {id: 2, name:"b", type: 0, icon: "110", order: -1}
    {id: 3, name:"cc", type: 1, icon: "8", order: 1}
    {id: 4, name:"dd", type: 1, icon: "0", order: 2}
    {id: 5, name:"ee", type: 1, icon: "0", order: 3}
    {id: 6, name:"ff", type: 1, icon: "0", order: 4}
]
    

it"s fine if you specify a sort field to sort using sort.
May I ask God what"s going on

Jul.08,2022
Menu