ArraySort
Method Signature
ArraySort(array=[assignablearray], sortType=[any], sortOrder=[string], localeSensitive=[boolean], callback=[function:Comparator])Arguments
Argument
Type
Required
Description
Default
Examples
Simple example for arraySort function
someArray = [
10,
20,
-99,
46,
50
];
arraySort( someArray, "numeric", "desc" );
writeOutput( JSONSerialize( someArray ) );
Simple example with member function
Simple example with callback function
Script member syntax: sort array of structs by multiple keys
Additional Examples
Related
Last updated
Was this helpful?
