polars.argsort_by

polars.argsort_by(exprs: Union[polars.internals.expr.Expr, str, Sequence[Union[polars.internals.expr.Expr, str]]], reverse: Union[List[bool], bool] = False) polars.internals.expr.Expr

Find the indexes that would sort the columns.

Argsort by multiple columns. The first column will be used for the ordering. If there are duplicates in the first column, the second column will be used to determine the ordering and so on.

Parameters
exprs

Columns use to determine the ordering.

reverse

Default is ascending.