PhixFlow Help

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 2 Next »

Function: orderList()

Return a new list containing the contents of a supplied list, sorted.

Optionally, control whether the list is sorted in ascending or descending order.

Syntax

orderList(list[,order])

ArgumentTypeDescription
listArrayThe list to be sorted
orderString

If this is 'ASC', sort in ascending order.

If this is 'DESC', sort in descending order.

If this parameter is omitted, sort in ascending order

Examples

orderList([1,4,3,2])

Returns [1,2,3,4].

orderList(['a','z','b'], 'DESC')

Returns ['z','b','a'].

See Also

  • No labels