V8 reorders properties that have "integer" names (and only those AFAIK):
> Object.keys({"b": 0, "3": 0, "a": 0, "1": 0 }) [ '1', '3', 'b', 'a' ] On Friday, August 10, 2012 2:22:20 PM UTC+2, Patrick Mueller wrote: > > On 8/10/12 3:51 AM, greelgorke wrote: > > you cant rely on the properties order in a object. standard says it > > undefined. if you rely on order use array as Martin said. > Except that most JS impls do respect insertion order. Weasily area. > Best to just not think about it. > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en