title: how to get current sort order from tablesorter plugin?
body: <p>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:</p>
  
  <ul>
  <li>ID</li>
  <li>Name </li>
  <li>Category</li>
  </ul>
  
  <p>ID and Name are set to non-sortable using </p>
  
  <pre><code>headers:    { 0: {sorter: false}, 1: {sorter: false} }
  </code></pre>
  
  <p>I'm adding a click handler on Name so that it fires the sort event on the Category column. Using the example "<a href="http://tablesorter.com/docs/example-trigger-sort.html" rel="noreferrer">Sort table using a link outside the table</a>", I'm able to get the Name header to fire the Category sort -- but it's hard-coded to sort in one direction. </p>
  
  <p>How can I get it to look at the current direction the Category column is currently sorted, and sort in the opposite direction? (I can handle flipping the values; since the sort order is 0 or 1, I can XOR the value to get the opposite, like <code>var sort; sort ^= sort;</code> -- my question is how to get the current value.</p>
  
  <p>Here's the code that currently sets the click handler on the Name column:</p>
  
  <pre><code>$("#nameCol").click(function() {
      var sorting = [[2, 0]];     /* sort 3rd col (Category) descending */
      $("#SearchResults").trigger("sorton", [sorting] );  /* SearchResults is the ID of the sortable table */
      return false;               /* cancel default link action on a#nameCol */
  });
  </code></pre>
  
  <p>Thanks!</p>