I have a Iist of 80,000 records of people (these are all generated test data ) stored in a JSON file, a sample of the names is shown below:
EmpNo Firstname Lastname
2949044 | Bom | Ackbar | |
5926741 | Sayar | Ackbar | |
6880068 | Knol | Ackbar | |
9642550 | Senni | Ackbar | |
8919163 | Canderous | Ackbar | |
3969278 | Sio | Ackbar | |
5850995 | Ariq | Ackbar | |
6510943 | Rune | Ackbar | |
When I point my Angular App ( currently set to V1.3.15 - but this seems to be consistent behaviour ersions) at the file with 80,000 records the default sort order behaves correctly according to what I set in my controller : Ascending order of lastname. as per the list above
Here's the relevant HTML ( filtered is my filtered list)
<tr dir-paginate="item in filtered = ( rows | filter:search:strict|limitTo:500 ) | orderBy:predicate:reverse | itemsPerPage: pageSize |limitTo:500 track by item.Employee_Number" current-page="currentPage">
& in my controller
$scope.predicate = 'Last_Name';
$scope.reverse = 'false';
When I point this at a file containing 90,000 or more records, it all goes wrong. Sort order becomes descending & only a few people with each name are shown: ( In the test data, I have over 500 records with lastname = Zapalo, but the default behaviour now seems to only show 3)
3368554 | Delva | Zapalo |
|
7212131 | Karoly | Zapalo |
|
2845659 | Pello | Zapalo |
|
4151843 | Shayl | Windu |
|
9042355 | Tas | Windu |
How can I make the larger lists display as intended?