title: Sorting after row reordering in DataTables (jQuery) does not work
body: <p>I have a table with jQuery DataTables and want to allow manual row reordering. Thus I am using <a href="https://code.google.com/p/jquery-datatables-row-reordering/wiki/Index" rel="nofollow">a jQuery plugin that enables row reordering in DataTables</a>.</p>
  
  <p>Problem is that by enabling row reordering, I cannot sort my tables anymore. The programmer of the rowreordering-plugin has made clear that this is how the plugin works, see the discussion here: <a href="https://code.google.com/p/jquery-datatables-row-reordering/issues/detail?id=1" rel="nofollow">https://code.google.com/p/jquery-datatables-row-reordering/issues/detail?id=1</a></p>
  
  <p>Now I want to enable sorting even after manual reordering and likewise reordering after sorting. It's not a problem if the sorting destroys the manual order and kind of "reverses" it.</p>
  
  <p>I guess this is the most relevant part of the plugins source code:</p>
  
  <pre><code>    return this.each(function () {
  
          var oTable = $(this).dataTable();
  
          var aaSortingFixed = (oTable.fnSettings().aaSortingFixed == null ? new Array() : oTable.fnSettings().aaSortingFixed);
          aaSortingFixed.push([properties.iIndexColumn, "asc"]);
  
          oTable.fnSettings().aaSortingFixed = aaSortingFixed;
  
  
          for (var i = 0; i &lt; oTable.fnSettings().aoColumns.length; i++) {
              oTable.fnSettings().aoColumns[i].bSortable = false;
              /*for(var j=0; j&lt;aaSortingFixed.length; j++)
              {
              if( i == aaSortingFixed[j][0] )
              oTable.fnSettings().aoColumns[i].bSortable = false;
              }*/
          }
          oTable.fnDraw();
  </code></pre>
  
  <p><a href="http://jquery-datatables-row-reordering.googlecode.com/svn/trunk/media/js/jquery.dataTables.rowReordering.js" rel="nofollow">Here is the complete source code</a>.</p>
  
  <p>By setting aoColumns[i].bSortable to ´true´ in the for-loop, sorting is enabled in the table but without any effect if I click on the columns. I'm looking for an idea how to fix this issue. The last entry of the <a href="https://code.google.com/p/jquery-datatables-row-reordering/issues/detail?id=1" rel="nofollow">issue discussion</a> says something promising, but it does not seem to work for me.</p>
  
  <p>I am using DataTables 1.9.0 and jQuery 1.7.1 because the plugin does not work with Datatables 1.10 or jQuery 2.</p>