> For the complete documentation index, see [llms.txt](https://docs.dietrichs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dietrichs.com/dietrichs-intelligent-documentation/francais/programmes-de-construction/modellbereiche/allgemeines/elemente/sortierung-von-elementen.md).

# Fonction de tri pour les éléments

Pour le tri des composants, on peut constater qu'un tri est nécessaire, car la modification d'un composant est clairement identifiable. Pour les éléments, cela n'est pas possible, car l'élément peut changer sans que le numéro courant de ses composants ne change, par exemple lorsqu'un composant est simplement déplacé. D'autre part, le tri des éléments après chaque modification entraînerait des problèmes de performance. C'est pourquoi le tri des éléments doit éventuellement être déclenché manuellement.

Le tri des éléments peut être appelé dans chaque environnement avec la fonction 1-8-6 Tri des éléments. Conformément à l'indication dans le dialogue suivant, tous les éléments de tous les environnements sont toujours triés. Ceci est indépendant de l'environnement dans lequel on se trouve.

Si le tri des composants est effectué manuellement ou automatiquement, un tri des éléments est aussi obligatoirement déclenché. Dans ce cas, la boîte de dialogue d'indication n'apparaît pas. Cela permet de garantir l'exactitude des numéros d'éléments après un tri de composants.


---

# 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.dietrichs.com/dietrichs-intelligent-documentation/francais/programmes-de-construction/modellbereiche/allgemeines/elemente/sortierung-von-elementen.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.
