Special:InviteSignup has following table structure:
<table> <thead> <tr> <th></th> </tr> <tr> <td></td> </tr> </thead> <tr> <td></td> </tr> </table>Sortable table places the sort arrows on the second tr, where I would expect them to be on the first one. I've identified the cause to be in buildHeaders line 314 of jquery.tablesorter.js:
if ( cellArray.length >= maxSeen ) {
This makes it choose last longest row, instead of the first one. Changing that to '>' makes it work, but there might be better solutions.
Version: 1.22.0
Severity: normal