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

Fails on one out of four columns #20

Open
uahim opened this issue Jul 20, 2017 · 2 comments
Open

Fails on one out of four columns #20

uahim opened this issue Jul 20, 2017 · 2 comments

Comments

@uahim
Copy link

uahim commented Jul 20, 2017

I recently noticed that sorttable fails while trying to sort one out of four columns on this record collection table, namely the "title" column: http://thewilderness.bplaced.net/rc/?q=nolivesmatter
wonder what leads to its' breaking? special characters in one of the table cells?
any help is appreciated, thanks

@stuartlangridge
Copy link
Owner

It's because sorttable is misdiagnosing that column as containing numbers, because it found a cell with only numbers in it. (Of course, this is a bug, because it should only treat a column as numeric if all the cells in it only contain numbers.) You can work around this and force sorttable to treat the column as alphanumeric as per the overrides instructions by adding class="sorttable_alpha" to the <th> heading the column.

(I'll leave this issue open so that the underlying bug gets fixed, but the workaround will hopefully be useful for now.)

@uahim
Copy link
Author

uahim commented Jul 20, 2017

@stuartlangridge thank you for the explanation; class="sorttable_alpha" works fine

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

2 participants