Is it possible to disable ascending sort on the jQuery plugin tablesorter?
I’m trying to get a table header when clicked to either be sorted in descending order or be unsorted and skip the ascending sort.
As a note, other posts I’ve seen talk about initial sort order and lock order, these solutions are not what I am looking for. I want the table to be initially unsorted, and I want the header column to loop between unsorted and sorted descending when clicked.
Thanks in advance.
According to the jQuery tablesorter documentation for lock sort order:
You can set the value to
descfor descending insteadascfor ascending.