what workaround could be possible to access objects by index and keeping the order ?
values: {
134: {id: 134, name: "A"},
120: {id: 120, name: "B"},
1722: {id: 1722, name: "C"},
}
I have objects of objects that I access by key to avoid unnecessary loop, the fact is that doesn't keep order at all because JavaScript re-sort them!
It will swap 134 and 120 to match an ascending sort order. Since Javascript can't handle associative array key => value, how can I do such things and avoid loops to access my objects?
Thanks you for any advice!
values[134]?