StringSort
Sorts a string and returns the result
Method Signature
StringSort(list=[string], sortType=[any], sortOrder=[string], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean], localeSensitive=[boolean], callback=[any])
Arguments
Argument
Type
Required
Description
Default
list
string
true
sortType
any
false
sortOrder
string
false
asc
delimiter
string
false
,
includeEmptyFields
boolean
false
false
multiCharacterDelimiter
boolean
false
false
localeSensitive
boolean
false
callback
any
false
Examples
Full function
Sort the string.
letters = "ZzgiSA";
writeOutput( stringSort( letters ) );
Result: ASZgiz
Member function
Sort the string.
letters = "ZzgiSA";
writeOutput( letters.sort() );
Result: ASZgiz
Additional Examples
result = stringSort( "JohnWick" );
writeOutput( result );
Related
Last updated
Was this helpful?