If you use jQuery TableSorter and see the "o is undefined" problem, it is the probably the case that you are using "<td>" inside the <thead> section instead of <th>. Use <th> and you will be good.
That pointed me in the right direction but my problem was a missing tr. I had td as direct children of a thead. It would be a lot more user-friendly if the tablesorter would detect and alert messages with this problem.
No descendent of thead should be a td. There must be 1 tr which is a direct child of the thead.
XHTML validation of the page and its table would point out a lot of similar problems.
I just had this problem, i was trying to sort on the last column in a table. I managed to solve it by adding another hidden column to the table. I guess the sorter looks to the next column if you only specify one column to sort by ([5,0]) for example.
Thanks for taking the time to post this. Sho'nuff, that was my issue.
ReplyDeletei did it but it doesn't solve my problem.
ReplyDeleteThank you! Fixed my issue.
ReplyDeleteThanks, that solved it!
ReplyDeleteThat pointed me in the right direction but my problem was a missing tr. I had td as direct children of a thead. It would be a lot more user-friendly if the tablesorter would detect and alert messages with this problem.
ReplyDeleteNo descendent of thead should be a td.
There must be 1 tr which is a direct child of the thead.
XHTML validation of the page and its table would point out a lot of similar problems.
I just had this problem, i was trying to sort on the last column in a table. I managed to solve it by adding another hidden column to the table. I guess the sorter looks to the next column if you only specify one column to sort by ([5,0]) for example.
ReplyDeleteTiebing, thank you!
ReplyDeleteThanks for taking the time to post this! :)
ReplyDeleteThank you!
ReplyDeleteThanks so much! Your simple tip helped me out tremendously!
ReplyDeleteThanks worked!!
ReplyDeleteThanks! Was my problem...
ReplyDelete