Fix: pagination did not work

Pagination works, but still ignores sortOrder directives.