Sorts array elements.
ArraySort(array=[modifiablearray], sortType=[any], sortOrder=[string], localeSensitive=[boolean], callback=[function:Comparator])
Argument | Type | Required | Description | Default |
---|---|---|---|---|
array |
modifiablearray |
true |
The array to sort | |
sortType |
any |
false |
Options are text, numeric, or textnocase | textnocase |
sortOrder |
string |
false |
Options are asc or desc | asc |
localeSensitive |
boolean |
false |
Sort based on local rules | |
callback |
function:Comparator |
false |
Function to sort by |
- ArrayAppend
- ArrayAvg
- ArrayClear
- ArrayContains
- ArrayContainsNoCase
- ArrayDelete
- ArrayDeleteAt
- ArrayDeleteNoCase
- ArrayEach
- ArrayEvery
- ArrayFilter
- ArrayFind
- ArrayFindAll
- ArrayFindAllNoCase
- ArrayFindNoCase
- ArrayFirst
- ArrayGetMetadata
- ArrayIndexExists
- ArrayInsertAt
- ArrayIsDefined
- ArrayLast
- ArrayMap
- ArrayMax
- ArrayMedian
- ArrayMerge
- ArrayMid
- ArrayMin
- ArrayNew
- ArrayPop
- ArrayPrepend
- ArrayPush
- ArrayRange
- ArrayReduce
- ArrayReduceRight
- ArrayResize
- ArrayReverse
- ArraySet
- ArrayShift
- ArraySlice
- ArraySome
- ArraySplice
- ArraySum
- ArraySwap
- ArrayToList
- ArrayToStruct
- ArrayUnshift