I've worked plenty with Angular and must be having a severe brain fart at the moment, but can't seem to get a simple orderBy to work properly. I have an array of numbers that I want sorted in order when display via an ng-repeat.
My data:
$scope.data = [200,243,190];
My markup attempts:
<div ng-repeat="split in data | orderBy">{{split}}</div>
<div ng-repeat="split in data | orderBy:split">{{split}}</div>
<div ng-repeat="split in data | orderBy:'split'">{{split}}</div>
<div ng-repeat="split in data | orderBy:['split']">{{split}}</div>
Oddly, even putting a bad parameter in doesn't seem to have any effect. No errors or nuthin'!
<div ng-repeat="split in data | orderBy:errorPlease">{{split}}</div>
Every.Single.Time. the list is shown as "200 ,243, 190
I have a JSFiddle displaying my problem. Angular 1.2.1