Problem is: Chrome automatically sorts properties of object.
If I have an object like:
var obj = {4: "first", 2: "second", 1: "third"};
then when I do next:
for(var i in obj) {
console.debug(obj[i]);
}
I see next:
third
second
first
but expect:
first
second
third