Name

sort — Sort a list into the natural of the elements

Syntax

sort(list)
              

The SORT function has the following arguments:

list

A list to be sorted

Description

Sort a list in to the natural order of the elements. Strings are sorted in alphabetic order. Integers and numbers are sorted in ascending order.

The resulting list will contain the same elements, but the ordering will be natural order.

Examples

Formula

Description

Result

sort({3,1,2})Sort a list of numbers{1,2,3}
sort({'c','a','b','c')Sort a list of strings{'a','b','c','c'}