GetSortedSet (open)
Sorts an array of comparable values
Syntax
LOADLIB "wh::util/algorithms.whlib";
VARIANT FUNCTION GetSortedSet(VARIANT input)
Parameters
VARIANT input
Input array
Return value
VARIANT
The sorted array // Given a simple INTEGER ARRAY like so: INTEGER ARRAY test := [ 5, 3, 4, 9, 11, 5, 0, 4 ]; test := GetSortedSet(test); // The result would be: INTEGER ARRAY [ 0, 3, 4, 5, 9, 11 ];