2) Another column has dynamic drop-down lists (1 SELECT tag in each cell), and I would like to sort the column alphabetically by the current selected values ββinside each SELECT tag. Any ideas?
I was just trying to achieve this, and this is impossible in the literal sense. The string that the parser function receives as a parameter (..format: function (s) {..) has already been removed from the tags. Therefore, it is not possible to determine which value is selected. To do this, you will need to change the table pointer.
Now I had to add a hidden option up with the selected value in it. This is a workaround. But, like the fact that you do not even need to write your own parser and tablesorter to sort correctly.
<option style="display:none">B</option> <option value="A">A</option> <option value="B" selected="selected">B</option> <option value="C">C</option> ... <option style="display:none">A</option> <option value="A" selected="selected">A</option> <option value="B">B</option> <option value="C">C</option>
The rows after which the tables are sorted are as follows:
source share