Re: [jQuery] how to get current sort order from tablesorter plugin?

2009-12-28 Thread vcohen
Thanks! Someone on StackOverflow pointed out that current sort order is indicated by the class applied to the column. So, I can test for the class ('headerSortUp', 'headerSortDown') on the Category column, and then trigger a sort in the opposite direction. I think I'll do that rather then go

[jQuery] how to get current sort order from tablesorter plugin?

2009-12-23 Thread vcohen
I'm just starting to use Christian Bach's excellent TableSorter plugin, and I need to get a column's current sort direction. I have several columns: ID Name Category ID and Name are set to non-sortable using headers:{ 0: {sorter: false}, 1: {sorter: false} } I'm adding a click handler on

Re: [jQuery] how to get current sort order from tablesorter plugin?

2009-12-23 Thread aquaone
I believe tablesorter's internal sort is stored under config.sortList for the table DOM element. It's a multidimensional array of column indices and sort direction, e.g. [[2,0][0,1]]. aquaone On Wed, Dec 23, 2009 at 15:46, vcohen vco...@irvinecompany.com wrote: I'm just starting to use