> For the complete documentation index, see [llms.txt](https://docs.fabricplan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fabricplan.com/planning-sheets/how-tos/infobridge/data-transformations/sort.md).

# Sort

Use the **Sort** transformation to arrange dimensions and measures in ascending or descending order.

Sorting data helps improve readability and ensures that query results appear in the order required for analysis and reporting.

### Sort data

The following example sorts the **Market & Geography** column in ascending order.

1. On the **Transform** tab, select **Sort Ascending** in the **Sort** group.<br>

   <figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FjhquLzuOJgVyCTReody7%2Fsort-data-source.png?alt=media&amp;token=50e84da0-d7f9-4ebb-86d6-4f6f77189669" alt=""><figcaption></figcaption></figure>

   The **Sort By Ascending** dialog opens.
2. In **Column Name**, select **Market & Geography**.
3. In **Order**, select **Ascending**.
4. Select **Apply**.

   <figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FeUenJTgRZiSgDs1vnCi8%2Fsort-data-configuration.png?alt=media&amp;token=beed24c2-335a-4a62-b76e-81aebafe37ed" alt=""><figcaption></figcaption></figure>

After you apply the sort, the column appears in the order you specified.

In this example, the **Market & Geography** column appears in ascending order.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2F7SK09eBoApujq8vhKK3x%2Fsort-data-results.png?alt=media&amp;token=a3f79f0d-978a-4be6-9cd8-06fb8c1b714c" alt=""><figcaption></figcaption></figure>

The applied sort appears in **Performed Steps** and applies to subsequent transformations, calculations, and reporting scenarios.

### Sort data from the column menu

You can also sort data directly from a column menu without opening the **Sort** dialog.

1. Open the menu for the column to sort.
2. Select **Sort ascending** or **Sort descending**.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2Fwb9UjzaI7QqFr3qsKz8b%2Fsort-data-column-menu.png?alt=media&amp;token=c55c38ce-bfc0-4072-a1df-3b314fe348f7" alt=""><figcaption></figcaption></figure>

The column sorts immediately based on your selection.


---

# 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.fabricplan.com/planning-sheets/how-tos/infobridge/data-transformations/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.
