> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LexicographicalOrder

> atoti.LexicographicalOrder(\
>
>     \*,\
>
>     *ascending*: [bool](https://docs.python.org/3/builtins/functions.html#bool) = `True`,\
>
> )

[Lexicographical order](https://en.wikipedia.org/wiki/Lexicographic_order).

> [!WARNING]
>
> Deprecated since version 6.2.1: Set [`atoti.StringComparison.digits`](./atoti.ordering.StringComparison#atoti.StringComparison.digits) to `"lexicographic"` instead:
>
> ```python theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
> level.order = tt.LexicographicalOrder(ascending=False)  # [!code --]
> level.ordering = tt.Ordering(direction="descending")  # [!code ++]
> ```

### Attributes

#### *ascending*

> [bool](https://docs.python.org/3/builtins/functions.html#bool)
