Sandbox — LSD is in active testing. All systems operational·payments are test-mode (no real charges).
Overview Use Cases News Docs Tool Store Support Community Get LSD
All docs
Table· method

Table.sort

sorts by one or more columns, ascending or descending

Python
sort(by: str | list[str], descending: bool = False) -> Table

Returns Table — a new, sorted Table

Parameters#

name type default description
by str | list[str] one column name, or a list to sort by in priority order
descending bool False direction — True sorts high-to-low

Example#

Python
t.sort("score", descending=True)

Sort by several columns (each in the same direction):

Python
t.sort(["team", "score"])

Notes#

descending is a single bool applied to all sort keys — there is no per-key direction. Every call returns a new Table.

See also#

API: head · filter · group_by

Guides: Tables & data flow

By LSD Team · Last updated Jul 17, 2026 Ask on Discord View as Markdown