changed the sortBy method to use array_values. hopefully this fixes the issue with the sorting. changing the id number of the row did not affect sort order