In JavaScript, all Objects act a bit like hashmaps. However, the keys to these hashmaps must be strings. If they\'re not, they\'re converted with toString(). Tha
toString()
You could implement your own class with a toString that ensures an ordering of keys.
toString