Code:
var x;
var mycars = new Array();
mycars[3] = "Saab";
mycars[1] = "Volvo";
mycars[0] = "BMW";
for (x in mycars)
{
document.write(mycars[x] + "<br />");
}
however Chrome sorts items by their index (BMW, Volvo, Saab)
Therefore there can be iregularities on website, while processing some JSON data and items are displayed in different order
how to fix this in Chrome? I have my data (array) in JSON and i need to display it (with index) in given order...