Added test for order by in conjunction with pagination