You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


Supported list types

Number list

The function returns a NUMBER LIST with elements in l sorted in a specified order. Available orders are ASC (for ascending order) and DESC (for descending order).

Syntax
sort(number list l, order) #Output: Number list
Examples
Parser expressionDescription
sort([2, 4, 3, 1], ASC) 

The function returns the NUMBER LIST : [1, 2, 3, 4]

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a NUMBER LIST


Text list

Returns a text list with elements in l lexicographical order. Available orders are ASC (for ascending order) and DESC (for descending order).

Syntax
sort(string list l, order) #Output: Text list
Examples
Parser expressionDescription
sort(["red", "blue", "green"], ASC)

The function returns the NUMBER LIST : ["blue", "green", "red"]

Additional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>

DATA TYPE

Parameter description.
<parameter>

DATA TYPE

Parameter description.
Output

The function returns a TEXT LIST