Tablesorter 2.0: Get current sort order

Tablesorter 2.0: Get current sort order

Hi,

I'm trying to find a way to get the current sort order of a table sorted with the tablesorter plugin.
From googleing i've found two ideas -

1. Using the class of the column - that works but will not yield the actual sort order if multiple columns are sorted

  1. $('#table thead tr th').each(
                                      function(a){
                                        var index =$(this).index();
                                      var sortUp=$(this).is('.headerSortUp');
                                      var sortDown=$(this).is('.headerSortDown');
                                         alert(" index=" + index + " sortup=" + sortUp + " sortdown=" + sortDown);
                                      }
                                  );








2. Accessing the tablesorter internal value of config.sortList

Is there an alternative?
Or how would i proceed with the second way? - me beeing a jquery noob ...


Thanks

p.s.1
I suppose i could place an event trigger on the sort icons and then check the difference between the new column order and the previous one... Would that be viable? Any hints on how to code that?