Seem to be having an issue with the tablesorter plugin and excluding columns for sorting. In the documentation: http://tablesorter.com/docs/example-meta-headers.html you can add a class to the th (class=”{sorter: false}”) so sorting is disabled on that column. This does not seem to work and also his example on that page does not work. If you inspect the source you can see that the class is specified on 2 columns but they are still sortable.
I know this used to work as I have a project which uses it and it works. I am however using an older version of jquery in that project so that is probably the issue. Maybe the meta-data is not compatible with the latest version of jquery?
Is anyone else having this issue?
Thanks.
Hmm, I’m not sure why the metadata isn’t registering – I have a working demo here
But I wanted to add that I ended up adding a fork of the tablesorter plugin on github. I’ve also made it so you can just use a class name instead of relying on metadata, like this
class="sorter-false"– here is the demo.