title: How to drag and drop table rows to swap them using JavaScript?
body: <p>I am trying to swap table rows using JQuery UI. It works well but I just could not get the row number during the drag and drop event. I need to know the row number for my following work, could someone help me?</p>
  
  <p>eg.</p>
  
  <pre><code>$('#table1 tbody').sortable({
  revert: true,
  start: function(event, ui) {
      // get row number, such as (row) 1
  },
  stop: function(event, ui) {
      // get row number, such as (row) 3
  }});
  </code></pre>
  
  <p>In fact, I do not need to sort table rows (just swap), if there are any possible solutions, please let me know...</p>