SORT
Operator name: SORT
Represents: The sorting of the rows in a table into the order of one or more of its columns, optionally eliminating duplicate entries.
Sorting is required when no index exists that satisfies the requested ordering, or when sorting would be less expensive than an index scan. Sorting is usually performed as a final operation once the required rows are fetched, or to sort data prior to a join or a group by.
If the number of rows is high or if the sorted data cannot be piped, the operation requires the costly generation of temporary tables.
For more information on sorts, see the Administration Guide.
Performance suggestions:
For guidelines about indexes, see Creating appropriate indexes.