> For the complete documentation index, see [llms.txt](https://docs.editable.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editable.io/working-with-editable/explore-data/sort-and-reorder.md).

# Sort and reorder

EDITable provides standard sorting options to sort the records: ascending/descending as well as A -> Z / Z -> A for numeric and non-numeric columns such as date, numbers, dropdown, text, and more.&#x20;

## 1. Sort records <a href="#id-1.-sorting" id="id-1.-sorting"></a>

1. Hover over the column header you want to sort, then click on the three-dot menu.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FR1XiGW7t3oe4zdxRxg2e%2Fimage.png?alt=media&amp;token=351bcb5a-2e5c-458b-8427-4e89c740446a" alt=""><figcaption><p>Sorting by values</p></figcaption></figure>

2. Select **Sort.** Then, choose **Sort Desc** or **Sort Asc** to sort the records in descending or ascending order respectively. Let's now sort the 'Salary' column in descending order.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FDylIYw4w2cm3xFjONCkQ%2Fimage.png?alt=media&amp;token=f183a592-99e3-4c90-927f-1032bbb8fbbb" alt=""><figcaption><p>Sorting by descending order</p></figcaption></figure>

3. A downward arrow in the image below indicates that the 'Salary' column is sorted in the descending order.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fowu7eAXSQrNzNt9dgMnO%2Fimage.png?alt=media&amp;token=85a29b2f-bd38-4b47-a3e9-b5b20ce79072" alt=""><figcaption><p>Column sorted in descending order</p></figcaption></figure>

4. To remove the sort, click on **Remove Sort** as shown. Alternatively, you can click on the sort icon in the column header to remove the sort.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fs3hTTUNBcMdBnWFmpjTc%2Fimage.png?alt=media&amp;token=2408f9c6-bd55-478b-8805-12e5c5c98353" alt=""><figcaption><p>Removing sort</p></figcaption></figure>

5. Similarly, sorting can also be applied to non-numeric columns. The image below shows the 'Last Name' column sorted in ascending order.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2Fb1SfTHQjDoV26aFtErXS%2Fimage.png?alt=media&amp;token=ce58b1af-2a07-4a1b-bcc9-81343ced1710" alt=""><figcaption><p>Sorting non-numeric columns</p></figcaption></figure>

## 2. Reorder columns

You can reorder columns by dragging and dropping the headers to arrange them the way you want.

<figure><img src="https://608526116-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdpYgiTFFEktmDlcxUGTv%2Fuploads%2FJsTaOLfRYT357L44X2tW%2Freorder%20columns.gif?alt=media&amp;token=4b043cf9-6743-4229-8c59-d36bcc754b78" alt=""><figcaption><p>Re-order columns</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.editable.io/working-with-editable/explore-data/sort-and-reorder.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
