sortDir() also did not reflect the default paging parameters. This would result in initial links not matching the query used. Fixes #2640