sort

Sorts the given query results according to the given QOM orderings.
If one or more orderings have been specified, this method will iterate
through the entire original result set, order the collected rows, and
return a new result set based on the sorted collection of rows.