An order of a grid's rows: a column, and a direction.
A grid's query holds a list of them, the first the most important: a click on a column's header sorts by that column alone, and a click with Shift adds it to the list.
Summary
Functions
A sort by the column with key, ascending unless direction says.