GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
When sorting a table the onSort function does not tell which direction the sort happens.
Following @oskarkrawczyk 's work I made this PR to fix that.
This would make possible to know if if the reversed state is true or false.
this isn't super clear. I'd do:
sort - callback executed when a column is sorted; passed the *tbody* (Element), the index of the column sorted (Integer) and which direction the table is sorted ("asc" or "desc").
👍 will do
and then this would be reversed ? 'desc' : 'asc'
reversed ? 'desc' : 'asc'
add sort direction to onSort function arguments
Merge pull request #1332 from SergioCrisostomo/sort-direction
add sort order to onSort function arguments