Updated the user pagination to maintain the column sorting and visa versa