> ## 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

<span id="atoti.LexicographicalOrder" />

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

[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 ++]
  ```
</Warning>

### Attributes

<h4 id="atoti.LexicographicalOrder.ascending">
  *ascending*
</h4>

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