ORDER BY keyword
Sort the results of a query in ascending or descending order.
#
SyntaxDefault order is ASC
. You can omit to order in ascending order.
#
ExamplesOmitting ASC will default to ascending order
Ordering in descending order
Multi-level ordering
#
Ressources managementcaution
Ordering data requires holding it in RAM. For large operations, we suggest you check you have sufficient memory to perform the operation.