> For the complete documentation index, see [llms.txt](https://university.gonexa.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.gonexa.fr/doc/getting-started/manage-tables/sort-table-data.md).

# Trier les données d'un tableau

Cette étape est facultative. Elle permet d'organiser la donnée dans votre tableau au moment de la génération et d'appliquer une règle.

## Identifier le critère de tri

* Comme pour le filtre, identifiez le bon champ qui va nous permettre de trier dynamiquement notre tableau

## Ajout du tri sur l'objet enfant

* Retournez sur l'objet enfant que vous souhaitez trier
* Dans la section "Trier", sélectionnez le champ Salesforce sur lequel vous souhaitez faire un tri
* Choisissez l'ordre de tri parmi Ascendant ou Descendant
* Exemple un tri ascendant du champ ProductCode

{% hint style="success" %}
**Pour exemple**

Un tri sur le champs ProductCode ascendant permettra de trier les produits
{% endhint %}

![Ajout d'un tri sur l'objet enfant](https://4198981723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTYUzkIngX1MnHE8kOJDR%2Fuploads%2FwHavUuZnKIJ9zTtgid3u%2F19-04-trier-la-donnee.gif?alt=media)

## Vérification du tri

* Retournez dans votre contexte (Devis, Opportunité, ...)
* Assurez vous d'avoir de la donnée complétée dans le champ trié
* Générez pour vérifier que le tri a bien été appliqué


---

# 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://university.gonexa.fr/doc/getting-started/manage-tables/sort-table-data.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.
