In the query panel help there is a section 'To sort query results' which states:
However the dialog is not there.
Is this an error in the documentation left from previous versions? I believe it was there in 3.1
Interestingly, the dialogue is present in the IDT query panel