Test pagination with order