AngularJS Paging orderBy only affects displayed page
Can anyone point me in the right direction to figure out a way to fix the way paging and orderBy work together in Angular? Currently, I can orderBy and page the results of the data[], but the orderBy filter only affects the each page individually. For example, if I sort in reverse order by ID, page 1 will list 10-1, and page 2 will list 15-11, as opposed to starting with 15 and going to 1 by the end of the second page. I have a basic fiddle here http://jsfiddle.net/ZbMsR/ Here is my controller: function MyCtrl($scope) { $scope.currentPage = 0; $scope.pageSize = 10; $scope.orderBy = "-appId";