Chrome re-ordering object keys if numerics, is that normal/expected

It’s the way v8 handles associative arrays. A known issue Issue 164 but it follows the spec so is marked ‘working as intended’. There isn’t a required order for looping through associative arrays.

A simple workaround is to precede number values with letters e.g: 'size_7':['9149','9139'] etc.

The standard will change in the next ECMAScript spec forcing [chrome] developers to change this.

Leave a Comment