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

rooby’s picture

Thanks for the report, I should have time to investigate over the weekend.

mpflaging’s picture

From http://tablesorter.com/docs/

You can also pass in configuration options when you initialize the table. This tells tablesorter to sort on the first and second column in ascending order.

$(document).ready(function() 
    { 
        $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} ); 
    } 
); 
rooby’s picture

Status: Active » Postponed (maintainer needs more info)

I 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

var_dump($default_sort); 

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.