class_docstr: Namespace for list related expressions.
class_docstr_tok: ["Namespace","for","list","related","expressions","."]
docstr: Sort the lists in this column.
  
  Parameters
  ----------
  descending
      Sort in descending order.
  
  Examples
  --------
  >>> df = pl.DataFrame(
  ...     {
  ...         "a": [[3, 2, 1], [9, 1, 2]],
  ...     }
  ... )
  >>> df.with_columns(sort=pl.col("a").list.sort())
  shape: (2, 2)
  ┌───────────┬───────────┐
  │ a         ┆ sort      │
  │ ---       ┆ ---       │
  │ list[i64] ┆ list[i64] │
  ╞═══════════╪═══════════╡
  │ [3, 2, 1] ┆ [1, 2, 3] │
  │ [9, 1, 2] ┆ [1, 2, 9] │
  └───────────┴───────────┘
  >>> df.with_columns(sort=pl.col("a").list.sort(descending=True))
  shape: (2, 2)
  ┌───────────┬───────────┐
  │ a         ┆ sort      │
  │ ---       ┆ ---       │
  │ list[i64] ┆ list[i64] │
  ╞═══════════╪═══════════╡
  │ [3, 2, 1] ┆ [3, 2, 1] │
  │ [9, 1, 2] ┆ [9, 2, 1] │
  └───────────┴───────────┘
docstr_tok: ["Sort","the","lists","in","this","column",".","Parameters","--","--","--","--","--","descending","Sort","in","descending","order",".","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","...","{","...","``","a","''",":","[","[","3",",","2",",","1","]",",","[","9",",","1",",","2","]","]",",","...","}","...",")",">",">",">","df.with_columns","(","sort=pl.col","(","``","a","''",")",".list.sort","(",")",")","shape",":","(","2",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","a","\u2506","sort","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","list","[","i64","]","\u2506","list","[","i64","]","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","[","3",",","2",",","1","]","\u2506","[","1",",","2",",","3","]","\u2502","\u2502","[","9",",","1",",","2","]","\u2506","[","1",",","2",",","9","]","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518",">",">",">","df.with_columns","(","sort=pl.col","(","``","a","''",")",".list.sort","(","descending=True",")",")","shape",":","(","2",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","a","\u2506","sort","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","list","[","i64","]","\u2506","list","[","i64","]","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","[","3",",","2",",","1","]","\u2506","[","3",",","2",",","1","]","\u2502","\u2502","[","9",",","1",",","2","]","\u2506","[","9",",","2",",","1","]","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def sort(self, *, descending: bool = False) -> Expr:
      """
      Sort the lists in this column.
  
      Parameters
      ----------
      descending
          Sort in descending order.
  
      Examples
      --------
      >>> df = pl.DataFrame(
      ...     {
      ...         "a": [[3, 2, 1], [9, 1, 2]],
      ...     }
      ... )
      >>> df.with_columns(sort=pl.col("a").list.sort())
      shape: (2, 2)
      ┌───────────┬───────────┐
      │ a         ┆ sort      │
      │ ---       ┆ ---       │
      │ list[i64] ┆ list[i64] │
      ╞═══════════╪═══════════╡
      │ [3, 2, 1] ┆ [1, 2, 3] │
      │ [9, 1, 2] ┆ [1, 2, 9] │
      └───────────┴───────────┘
      >>> df.with_columns(sort=pl.col("a").list.sort(descending=True))
      shape: (2, 2)
      ┌───────────┬───────────┐
      │ a         ┆ sort      │
      │ ---       ┆ ---       │
      │ list[i64] ┆ list[i64] │
      ╞═══════════╪═══════════╡
      │ [3, 2, 1] ┆ [3, 2, 1] │
      │ [9, 1, 2] ┆ [9, 2, 1] │
      └───────────┴───────────┘
  
      """
      return wrap_expr(self._pyexpr.list_sort(descending))
  
imports: from __future__ import annotations
  import copy
  from typing import TYPE_CHECKING, Any, Callable, Sequence
  import polars._reexport
  from polars import functions
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter
label_desc: Use image node_id 12 for calling the ExprListNameSpace obj's underlying member method code with example usage: obj.sort() and returns: wrap_expr