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

Compare with Current View Page History

« Previous Version 7 Next »


Supported list types

Number list

This 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) 

This example returns the following number list : [1, 2, 3, 4]

Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

The function returns a NUMBER LIST


Text list

This function 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)

This example returns the following text list : ["blue", "green", "red"]

Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

The function returns a TEXT LIST


Issue list

This function returns an issue list with elements in l ordered according to values of field.

Argument field has the format {nnnnn} for numeric and date-time fields, %{nnnnn} for text fields, or %{nnnnn.i} for cascading select fields. Available orders are ASC (for ascending order) and DESC (for descending order).

Syntax
sort(issue list l, field field, order) #Output: Issue list
Examples
Parser expressionDescription
sort(linkedIssues("is blocked by"), {00012}, ASC)

This example returns the issue list of issues blocking current issue, sorted in ascending order by Due date.

{00012} is code for numeric value of Due date.

Additional information

Parameters used in this function

ParameterInput (data type)Description
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
xxx

DATA TYPE

Parameter description.
Output

The function returns an ISSUE LIST