> For the complete documentation index, see [llms.txt](https://docs.dapplooker.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapplooker.com/dapplooker-analytics/features/editor-panel/sorting.md).

# Sorting

To sort a result set, you use the ORDER BY clause. The ORDER BY clause takes a list of column names, and the rows in the result set will be sorted in the order that the columns are listed.

Eg. Sorting is employed to arrange data in either ascending or descending order. When a user desires the highest values in a column, sorting in descending order provides that result, whereas sorting in ascending order achieves the opposite.
