sorting and pagination for movie table.