Syntax

arraySort(arrayName, reverse)

Package

array

Alias

Pkg Usage

sort(arrayName, reverse)

Description

Sorts the elements from an array.

Sorts the elements from an array.

Parameters

Parameter name

Type

Required

Description

arrayName

Array

Yes

Array.

reverse

Boolean

Yes

"True" if reverse order and "false" otherwise.

Return Type

Array

Example

watchers = arraySort(watchers, false);

The result returned by the routine is an array that contains the elements from watchers sorted in the ascending order.

See also