Problem is: Chrome automatically sorts properties of object.
If I have an object like:
var obj = {4: \"first\", 2: \"second\", 1: \"third\"};
You should not expect any particular order for keys in for..in loops. From the MDC docs:
for..in
A for...in loop iterates over the properties of an object in an arbitrary order
If you want ordering using numerical keys, use an array.