Fix pagination ordering.