cycquery.ops.OrderByΒΆ
- class OrderBy(cols, ascending=None)[source]ΒΆ
Bases:
QueryOp
Order, or sort, the rows of a table by some columns.
- Parameters:
Examples
>>> OrderBy("col1")(table) >>> OrderBy(["col1", "col2"])(table) >>> OrderBy(["col1", "col2"], [True, False])(table) >>> OrderBy(["col1", "col2"], True)(table)
Methods