Sort a list (sort)
A list in increasing order.
How to write it
sort(list)
- list
- The list. Takes a list.
Examples
sort([3, 1, 2])In the solver,
Open in the solversort([3, 1, 2])gives[1, 2, 3].
Related functions
- subsets
All the sublists of a list that keep its order, as a list.
- select
The elements of a list for which a test holds.
- table
Build a list by evaluating an expression over one or more ranges.
- rotate_right
A list with its elements moved to the right, the last ones going to the front.
- take
The first elements of a list.
- rotate_left
A list with its elements moved to the left, the first ones going to the end.