fix sorting by a column advancing a page, RT#25740