there is a rich:datatable with 5 columns. initial data is sorted from the backened. user can change the sorting and sort by column 1. for this i have used sortBy atribute.

Now when the datatable gets rerendered with new data from backend, the sorting logic of backened gets overridden by the column 1.

kindly let me know how to maintain the initial state of the datatable and sorting logic of backened during rerendering of data.