that's because you are using json object whenever face this kind  of 
problem change your json boject to json array object.

{"India":"IN","America":"US","United Kingdon":"UK"} json object
[{"country":"India","countryId":"IN"},{"country":"America","countryId":"US"},{"country":"United
 
Kingdon","countryId":"UK"}] json array object

On Thursday, January 23, 2014 at 5:54:18 AM UTC+5:30, Jay Klehr wrote:
>
> 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to