title: Sort excel by a column using shiftRows- Apache POI - XmlValueDisconnectedException
body: <p>I have an <code>XSSFWorkbook</code> with n number of columns. And my requirement is to sort the entire sheet by the first column.
  I referred to this <a href="http://poi.apache.org/spreadsheet/quick-guide.html#FillsAndFrills" rel="nofollow noreferrer">link</a> but did not get any information about sorting. </p>
  
  <p>I have also tried the code from <a href="https://stackoverflow.com/questions/13134490/apache-poi-sorting-rows-in-excel">here</a> but it gives exception at </p>
  
  <pre><code>sheet.shiftRows(row2.getRowNum(), row2.getRowNum(), -1);
  </code></pre>
  
  <p>I am using <code>Apache POI 3.17</code>.</p>
  
  <p>Anyone has any suggestion or solution?</p>