O'Reilly logo
  • GILBERT LIAO thinks this is interesting:

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.


Cover of AngularJS: Up and Running


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