question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorting should be handled on server side

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
amcdnlcommented, Nov 11, 2016

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.

0reactions
amcdnlcommented, Dec 4, 2016

Fixed in latest. Use externalSorting prop.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found