imballinst / react-bs-datatable

Bootstrap datatable without jQuery. Features include: filter, sort, pagination, checkbox, and control customization.
https://imballinst.github.io/react-bs-datatable
MIT License
59 stars 20 forks source link

Sorting only works with current active page instead of all pages #46

Closed vijaypatoliya closed 4 years ago

vijaypatoliya commented 4 years ago

As now sorting only support with the current page. Is there an option to sort on the whole data source instead of a current active page?

Thanks in advance.

imballinst commented 4 years ago

Sorry for that! I believe that should be a bug (and quite an annoying one!). Your use case (sort entire table) should be the default behavior. I will inspect this and push a fix real soon.

imballinst commented 4 years ago

@vijaypatoliya This PR https://github.com/Imballinst/react-bs-datatable/pull/47 is an attempt to fix this issue. Please try out the sandbox https://codesandbox.io/s/serverless-cookies-6pgn3 and try to sort the "Score" column!

If the behavior is correct, I'll merge it and publish 2.0.3.