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

# Sort and reorder

PowerTable provides standard sorting options to sort the records based on specific columns: 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="/files/X6SKHm1lHONNRDJtZs4p" alt=""><figcaption><p>Click on the column header menu</p></figcaption></figure>

2. Choose **Sort Descending** or **Sort Ascending** to sort the records in descending or ascending order, respectively. Let's now sort the 'Product SKU' column in ascending order (A > Z).

<figure><img src="/files/Lu9lYcnuCtjGcWZJxknU" alt=""><figcaption><p>Sort in ascending order</p></figcaption></figure>

The table is sorted as shown below:

<figure><img src="/files/nVLpeIoaTResufELkEPL" alt=""><figcaption><p>Records sorted in ascending order based on Product SKU</p></figcaption></figure>

3. To sort it in reverse order (in this case, descending order), either click the three dots in the header and select **Sort Descending** or simply click on the down arrow in the header.

<figure><img src="/files/Qzh4EHG60qc0ITRA9d5r" alt=""><figcaption><p>Sort in descending order</p></figcaption></figure>

4. To remove the sort, click on the arrow again or choose the **Remove Sort** option from the menu.

<figure><img src="/files/klaQLQl8LlGqulfVcFtd" alt=""><figcaption><p>Remove sort</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="/files/3RZ0CQDNY98G5jWWdtgw" alt=""><figcaption><p>Reorder 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
