That's because you're using numeric keys, JS sorts those when it creates 
the object (at least in Chrome, other browsers may behave differently), so 
there's nothing that can be done as Object.keys() will return them ordered 
(event console.log of the object does, outside of angular):

(open up your JS console to see how the two objects differ, no angular in 
this, just a raw fiddle)

http://jsfiddle.net/jaydiablo/Mx28T/



On Tuesday, January 21, 2014 6:52:49 AM UTC-7, Evgeniy Tkachenko wrote:
>
> Henrique Recidive  not work for me 
>
> http://jsfiddle.net/er52h/2/
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to