list.sort

Syntax

lout := list.sort(lin)

Get a sorted copy of a list.

Returns a copy of the list lin sorted by value. The sort occurs by type and then by internal comparison, using the “<” operator. It is not yet possible to customize the sorting function.

Returns:

lout - the sorted copy of list lin

Arguments:

lin - the list to sort.