> ## Documentation Index
> Fetch the complete documentation index at: https://coconut-grid.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sorting

Sort records in the data grid by one or more columns.

## Sorting

Sort records directly from the column header or column menu.

<Steps>
  <Step title="Sort from column header">
    Click a column header to toggle the sort order.

    * DESC → ASC → DESC … (cycles)
  </Step>

  <Step title="Sort from column menu">
    Open the column menu and choose one of the following.

    * **Sort by ASC**
    * **Sort by DESC**
  </Step>

  <Step title="Clear sorting">
    Remove sorting from a column.

    * Open the column menu and click **Unsort**
  </Step>
</Steps>

## Multi-column Sorting

Apply sorting to multiple columns at the same time.

* Hold `Ctrl` or `Shift` while clicking column headers (use `Command` or `Shift` on macOS)
* Sorting is applied in the order you select columns (first, second, etc.)
* To change priority, clear the sort and apply again in the desired order

<Info>
  Sorting is unavailable for formula columns.
</Info>
