Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remembering sorting #121

Open
atomAltera opened this issue Nov 21, 2016 · 2 comments
Open

Remembering sorting #121

atomAltera opened this issue Nov 21, 2016 · 2 comments

Comments

@atomAltera
Copy link

Hello, how can I get know what columns are sorted and apply the same sorting on next visit of page?

I'm tried to handle sortStart and sortEnd events but I did not found there which columns are sorted

@DavidBruchmann
Copy link

you've to save the user-choice somewhere, probably a cookie is the easiest and most compatible way.
But this option should be optional as not everyone want to make cookies used for tablesorter perhaps.

@enthuzy
Copy link

enthuzy commented Apr 25, 2018

I use localStorage keys to set the sort order and on window.load retrieve https://www.w3schools.com/html/html5_webstorage.aspfor the sortList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants