fix custom sorter test

Fixes the occasionally randomly failing paginated table test.

Officially closes #2147