title: Sort the table td having same text in jquery or javascript
body: <p>I need to get an idea how we can sort the table having the same text in td</p>
  
  <p>e.g I have a below table</p>
  
  <pre><code>Column 1     Column 2
      A           test1           
      B           test2
      C           test3
      D           test1
      E           test4
      F           test3
  </code></pre>
  
  <p>I want an output something like below</p>
  
  <pre><code>Column 1     Column 2
      A           test1           
      D           test1
      C           test3
      F           test3
      B           test2
      E           test4
  </code></pre>
  
  <p>Why I want to sort it in this way so that I can do the rowspan easily</p>