> For the complete documentation index, see [llms.txt](https://mappl-io.gitbook.io/mappl.io-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mappl-io.gitbook.io/mappl.io-docs/results-table-output/sort.md).

# Sort

You will often want to sort the data in the results table before export to make sure that it is in the most usable format.

### Sorting a single column

To sort the data in the results table, you can click on the column header of the column you want to sort.&#x20;

The sorting applied will be shown by an arrow in the header. By default, a column with no manual sorting applied does not show an arrow. When you click on a column header once, an upward arrow will appear and the column will be sorted in ascending order. Clicking on the same column header again will make a downward arrow appear, and the column will be sorted in descending order.

&#x20;If you click the column header a third time, the sorting will go back to its default state.

### Sorting multiple columns

You can sort multiple columns simultaneously by following these steps:&#x20;

1. Sort the first column as described above.&#x20;
2. Hold down the shift button and click on the second column you would like to sort. The number "2" will appear in the second column, and you will be able to sort it in ascending or descending order. The second sort will be applied after the first sort.

In the example below, sorting has been first applied to the second-level vertical label column showing marketing activity type (Blog content, Design, etc.) and then the color labels column. You can now easily examine the completion status of each task for each marketing activity.

<figure><img src="/files/LXKbejrthudc2SQpjB2b" alt=""><figcaption></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://mappl-io.gitbook.io/mappl.io-docs/results-table-output/sort.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.
