Fix sort() argument and tests in PaginationAdapterTest