Key added in map in the first index instead the last index

Hello Everyone. First of all, sorry if my english is not too good, not my main languaje. Briefly speaking, my issue is the next:

When I try to add an element to a map, in some cases, it doesn’t add that element at the end of the map, it added in the first index (index 0), and move the other elements to 1+ index. Idk why that happens, and i have a video explaining with more detail.
Video: https://youtu.be/7XbINeByQOQ

Thank you everyone c:

1 Like

Maps don’t have an ordering. When they are converted to an array, there’s no guarantee about the order :slight_smile: