In b4a, each time, I add one key to a map, the new key will add at the end of the map. In b4i, it is another behavior: New keys are added sometimes to the first position, then to the last or in the middle, without any logic (...for me). I have tested the chronological order with
For example, when I add the following keys in series to the map:
11155, 211534, 211560, 211533,
in b4a it is: 11155, 211534, 211560, 211533.
in b4i it is: 211560, 211534, 11155, 211533
Is it possible to define the map to add the new keys always at the end of the map?
B4X:
For Each key As String In Map1.keys
Log(key)
Next
For example, when I add the following keys in series to the map:
11155, 211534, 211560, 211533,
in b4a it is: 11155, 211534, 211560, 211533.
in b4i it is: 211560, 211534, 11155, 211533
Is it possible to define the map to add the new keys always at the end of the map?