Sorting should be handled on server side
See original GitHub issueI’m submitting a …
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior When using external paging, when clicking column header pagination is triggered on client side.
Expected behavior When external paging is active, sorting operations should be executed on server side
Reproduction of the problem https://swimlane.gitbooks.io/angular2-data-table/content/examples/server-paging.html Change page => company.json is called Change sort => no server calls
What is the motivation / use case for changing the behavior? Having accurate displayed data
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Should data sorting be done on the client or on the server?
Sorting on the server is faster (as in: you can sort more rows/second), but if you have to serve 10000 clients at once,...
Read more >Server-Side and Client-Side Sorting and Filtering
If you want to sort these records or use a filter, the filtering and sorting procedures are performed on the client side and...
Read more >Server Side Sorting - SoftFluent
Server side sorting should be preferred in almost all cases to client side sorting, since server side sorting is handled in the data...
Read more >Client Side vs Server Side Pagination: How to Choose the ...
Pagination can be handled either 'Client Side', or 'Server Side'. ... The advantage of this solution is that any sorting, searching or ...
Read more >How to do Sorting at Server side. - JavaScript - EJ 2 - Syncfusion
I am trying to achieve sorting at server side with the ej2-grid. I have gone through all the documents and got confused.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ya, I was kinda torn on this.
So in 1.0 I made it where if you pass a falsey, it will not use the compare fn. This allows u to use client side for some columns and server sorting for others at the same time. In hind sight, I’m not sure how useful that actually is but seemed like good idea at time. My goal was to try to make as minimal and implicit api as possible.
I do agree it can be confusing and since we already have external paging flag ill fold and add this too.
Fixed in latest. Use
externalSorting
prop.