title: Jquery UI sorting multiple table row at once
body: <p>I have a problem with jqueryui sorting.</p>
  
  <p>Now i have a table with sorting on tr and it's all working, but now i have to sort 2 row at once. In the example below i have to sort together row with G1 or G2 or G3.</p>
  
  <p>Now after having beaten my head against the wall for hours i'm here to ask for help.</p>
  
  <p>Queryui sort have the option <em>item</em>, i try to use it but can't make itwork in table. </p>
  
  <p>There is a way to do that? Anyone can help me?</p>
  
  <p>I try here <a href="https://jsfiddle.net/n29ekt42/" rel="nofollow">https://jsfiddle.net/n29ekt42/</a></p>
  
  <pre><code>    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;T1&lt;/th&gt;
              &lt;th&gt;T1&lt;/th&gt;
              &lt;th&gt;T1&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;G1&lt;/td&gt;
              &lt;td&gt;G1&lt;/td&gt;
              &lt;td&gt;G1&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;G1&lt;/td&gt;
              &lt;td&gt;G1&lt;/td&gt;
              &lt;td&gt;G1&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;G2&lt;/td&gt;
              &lt;td&gt;G2&lt;/td&gt;
              &lt;td&gt;G2&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;G2&lt;/td&gt;
              &lt;td&gt;G2&lt;/td&gt;
              &lt;td&gt;G2&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;G3&lt;/td&gt;
              &lt;td&gt;G3&lt;/td&gt;
              &lt;td&gt;G3&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;G3&lt;/td&gt;
              &lt;td&gt;G3&lt;/td&gt;
              &lt;td&gt;G3&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
      &lt;/table&gt;
  
     function assignSortAttach() {
  
      $("table tbody").sortable({
          start: function( event, ui ) {
              var aa = $this.attr('data-row');
          }
      })
  }
  
  // TR sortable
  $(function () {
      assignSortAttach()
  });
  </code></pre>