title: Auto increment in TableView using JavaFX is not sorting
body: <p>I found a "Simple alternate solution" in <a href="https://stackoverflow.com/questions/16384879/auto-numbered-table-rows-javafx">auto numbered table rows (javafx)</a> for auto-incrementing values</p>
  
  <ol>
  <li><p>This works well. However, if I sort the column in the table, this is not getting sorted. Any fix for this?</p></li>
  <li><p>Also, according the solution if I delete a row in the middle and write the table contents to a file, the row number is adjusted in the table view but not in the file. The row will be deleted in the file but the auto-incremented value does not get adjusted. Please help.</p></li>
  </ol>