i have myData map as below
var myData = new Object();
myData[10427] = "Description 10427";
myData[10504] = "Description 10504";
myData[10419] = "Description 10419";
but now when i iterate over myData, i don't get same sequnce in chrome and IE works fine in firefox. It iterates in ascending order of key
for (var key in myData) {
alert("key is"+key);
}
i get the output in ascending order in alert as 10419,10427,10504
How i can make sure to iterate in same order as data as inserted in map?
myDate['10427'] = "Description 10427";. If you just use a number it gets added at that index in the array.