Here is the layout of myData map:
var myData = new Object();
myData[10427] = "Description 10427";
myData[10504] = "Description 10504";
myData[10419] = "Description 10419";
However, when I loop through myData, the sequence is not consistent between Chrome and IE, although it works fine in Firefox. The iteration happens in ascending order of key.
for (var key in myData) {
alert("key is"+key);
}
The output displayed in the alert is in ascending order like 10419, 10427, 10504
Is there a way to ensure that the iteration follows the same order as the data was inserted in the map?