I am trying to make demo of sorted data and display on table.Actually In my demo I am hitting a service got some data (2000) objects in that as a response.So I am display 50 obj
Just change order of limitTo and orderBy in your repeater
orderBy: ... | limitTo : ...
<div class="row" ng-repeat="column in invoice_records | orderBy: sortval:reverse track by $index | limitTo: counter " ng-class-odd="'odd-row'">
You can call the order by on the results from your service:
$scope.total_invoice_records = $filter('orderBy')(data.records, 'columns['+idx+'].value', true)