-
Notifications
You must be signed in to change notification settings - Fork 181
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
Bugfix: Correctly sort re-ordered columns #1096
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clever! I didn't know that column names would be sent to the server side. Thank you so much! I'll tweak the PR a little bit and merge.
…he data via the column names, so that the correct columns are searched and sorted
It turns out that sorting is easier to fix, and it took me quite a while to figure out how to fix searching, thanks to your guidance. I think this PR is ready to go now. |
Glad I could help! Didn't realise that the search was also not working when re-ordered |
The re-ordered column order isn't sent server-side, so have added the column names to the DT options. This gets passed into the server-side parameters in
columns$[[col_id]]$name
(adding it todata
instead caused errors)This PR should resolve #534 , #921 and #1069