Skip to content

Order by

shi edited this page Apr 30, 2021 · 1 revision

This sorts the resulting data in ascending or descending order.
Multiple column names are separated by a comma ,.

The default order is in ascending order (low to high).

Operator Description
asc Sorts in ascending order (low to high)
desc Sorts in descending order (high to low)

Examples

order by 2 desc
order by 1 asc, 3 desc
Clone this wiki locally