swimlane / ngx-datatable

✨ A feature-rich yet lightweight data-table crafted for Angular
http://swimlane.github.io/ngx-datatable/
MIT License
4.63k stars 1.68k forks source link

Is there a way to unsort the datatable to its original order after clicking the sort arrows to manipulate the table? #1761

Open samyuktr opened 4 years ago

samyuktr commented 4 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior When the table is sorted by various columns there is no way to unsort them in one click back to the original sort order.

Expected behavior With a single click, one should be able to restore the original order of the table,.

Package Version

@angular-devkit/architect 0.800.4 @angular-devkit/core 8.0.4 @angular-devkit/schematics 8.0.4 @schematics/angular 8.0.4 @schematics/update 0.800.4 rxjs 6.4.0

ShubhamJainSJ commented 2 years ago

Earlier on the third click, data used to reset to the original state i.e. unsorted but that behavior is no longer present. Do we have solution for this?