title: ColumnSorting with AsyncDataProvider - how to find out which column the user wants to sort by?
body: <p>I am implementing a GWT CellTable with paging and sorting by multiple columns dynamically.
  The basics can be found in the <a href="https://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellTable" rel="nofollow">CellTable Developer's Guide</a>.</p>
  
  <p>However, the dynamic example does not tell how to find out by which column the user wants to sort (it simply sorts by the 'name' column). That's not enough in my case, as I want to allow the user to sort by different columns.</p>
  
  <p>The only solution I could think of, which is not very elegant, is to keep track of which column is sorted in ascending order or not (using <code>table.getColumnSortList(indexOfColumn).isAscending()</code>) and then figuring out which one has been clicked by comparing the values for each column (the one that changed is probably what the user clicked).</p>
  
  <p>This involves keeping information in my classes that should be available somewhere in the CellTable! But I can't find that information!</p>
  
  <p>Thanks for any help.</p>