Skip to main content

Sort

Sorts a list or vector.

Syntax

sort(List | Range | Vector)
sort(List | Range | Vector, Function)

Description

Sorts a list, range or vector in ascending order.

logic_and_sets.sort1.calc.png

Given a list, range or vector, and a function previously defined, sorts the elements in ascending order. The comparison is specified by the function.

logic_and_sets.sort2.calc.png