Exchanging sort & group queries so that both can be done at once. Hacky I know.
Also temporarily expanding page size so that grouping looks pretty.