Is it possible for http://tablesorter.com to sort on different values depending on whether the sort is ascending or descending ?
I see how to return sort values for a cell based on arbitrary data with a parser (i.e.: http://code-cocktail.in/hidden-value-sorting-in-jquery-tablesorter-plugin/ ) , so returning different values in different situations seems simple enough.
The bit I'm banging my head on is that I cannot seem to determine the sort order when parsing. It looks like I can re-parse cells when a sort is being requested via the following:
$(".tablesorter").bind("sortStart",function() {
$(".tablesorter").trigger("update");
});
... however it looks like at the "sortStart" point the order of the sort isn't known, so the parser cannot provide different values based on that column's sort order.
Is this possible ? Thanks :-)