polars.LazyFrame.set_sorted#

LazyFrame.set_sorted(column: str | Iterable[str], *more_columns: str, descending: bool = False) Self[source]#

Indicate that one or multiple columns are sorted.

Parameters:
column

Columns that are sorted

more_columns

Additional columns that are sorted, specified as positional arguments.

descending

Whether the columns are sorted in descending order.