Query order by test.