I didn't check extensively but, somehow, it seems that the default sort is the last column on the table.
$default_sort array inside "views_tablesorter_crete_sort_list" function produces (last_column, 1), so the default order is always by last column descending.
Comments
Comment #1
rooby commentedThanks for the report, I should have time to investigate over the weekend.
Comment #2
mpflaging commentedFrom http://tablesorter.com/docs/
Comment #3
rooby commentedI have done a few test runs with the current dev version (should be the same as beta 1) and I can't reproduce this.
I have a view with 7 and I can set the default sort on any of them and it works.
Can you paste an export of your view into a text file and upload it here.
And if you're in a debugging mood a
from just before the end of the views_tablesorter_crete_sort_list() function in views_tablesorter.module.
Then I can look into it further.
@mpflaging:
Yeah, that is how this module works.
It takes your default sort settings from your view, formats them like [[0,0], [1,0]] and then they get added just like you mentioned.