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
You can call the order by on the results from your service:
$scope.total_invoice_records = $filter('orderBy')(data.records, 'columns['+idx+'].value', true)