Added an update menthod to refresh the sort when data is updated in the rows