-
Notifications
You must be signed in to change notification settings - Fork 26
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
Change empty cells to end of sort rather than start. #10
Comments
I am experiencing this issue where whitespace sorts to the top when sorting highest at top. Is there anything I must do to make it work? |
@warmwhisky I'm guessing you are using order-by-desc and the whitespace is expected be at the bottom (on the first click)? I just tested it out; I don't think what you are getting is the desired behavior. We should put whitespace at the bottom when ordering by desc; I'll reopen the issue. |
Sorry, yes I am using order-by-desc, but It's not only on the first click, whitespace is always at the top when sorting by descend.
That would be great if you could fix it. I've been using DataTables for years, in most instances just for the sorting functionality. This package is a much lighter solution. |
Being at the top on the second click is currently the intended behavior, but I guess could have whitespace at the bottom on both accounts; it probably makes a bit more sense... |
Research what localeCompare considers the lowest value in JS for sort and change empty cells to this value (value#+i)nstead of i columnData.push("0#" + i); So white space ends up at the end of the table rather than the start when sorting.
The text was updated successfully, but these errors were encountered: