There is a parser that comes with the plugin in the /js/parsers/
directory named parser-input-select
(ref) which contains code to both parse (the textExtraction
change is not required) and update the internal cache when a user changes the select.
To ensure the select parser is being used, load this parser file then set the headers option (or header class name sorter-select
) as follows:
$("table").tablesorter({
theme : "blue",
headers: {
0: { sorter: "select" }
}
});
You can see this parser working in the grouping widget demo, or this jsFiddle.