title: How to retain the sort order of primefaces datatable?
body: <p>In my project I am using a ViewScoped bean and I have two pages one is main page and the other details page.</p>
  
  <p>In the main page I have a primefaces datatable with sorting and filtering functionality.
  The datatable has a link in each row. If I sort a column, then it works properly. If I click on a link in the main page, then it will go to the details page showing the details of the corresponding row. In the details page I have a back button. If I click on it, it will take me back to the main page, but the sort order is not retained in the datatable.</p>
  
  <p>I need to retain the sort order. How can I achieve this?</p>