order the query