Sorting 2-Dimensional Arrays

There was a post on the BACFUG mailing list yesterday which I think makes for a good tip. Someone was asking how to use the arraySort function to sort two-dimensional arrays, which it does not support. The response was a recommendation to create a query instead, then use query of query to get the record set in the correct order. What would you suggest?