When we use the
ng-repeat directive over an object instead of an array, the keys of the object will be sorted in a case-sensitive, alphabetic order. That is, uppercase first, and then sorted by alphabet. So in this case, the items would be shown in the HTML in the following order: Misko, brad, shyam.
Only true for v1.3.x and before. Starting v1.4, the order will be retained. see https://github.com/angular/angular.js/blob/master/CHANGELOG.md#breaking-changes-6
Share this highlighthttp://www.safaribooksonline.com/a/angularjs-up-and/1327810/