Change the order of the query.