[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-31 Thread Crazy Serb
Nobody has a clue? On Aug 27, 8:03 pm, Serb wrote: > Right, but that's for the default on-page-load sort, so to speak... > I'm talking about all the other on-demand, on-header-click sorts - > they all default to ascending for some reason... > > On Aug 27, 7:12 pm, marksimon wrote: > > > $(docum

[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-27 Thread marksimon
$(document).ready(function() { $(".tablesorter").tablesorter({ sortList: [[0,1]], widthFixed: true, widgets: ['zebra']}); }); the sortList parameter takes two arguments: column, and direction. So sorting 0,1 sorts on the first column descending. 1,0 would be second column descending.

[jQuery] Re: TableSorter plugin - default column sort DESC instead? How?

2009-08-27 Thread Serb
Right, but that's for the default on-page-load sort, so to speak... I'm talking about all the other on-demand, on-header-click sorts - they all default to ascending for some reason... On Aug 27, 7:12 pm, marksimon wrote: > $(document).ready(function() { >      $(".tablesorter").tablesorter({ >