stringSort

Sorts an input string.

stringSort(inputString) → returns string

Member Function Syntax

inputString.sort()

stringSort Argument Reference

inputString string
Required

The string to sort.

Compatibility

Lucee:

Version 6+ This function is being added in Lucee 6.

Links more information about stringSort

Examples sample code invoking the stringSort function

Sort the string.

letters="ZzgiSA";
writeOutput(stringSort(letters))

Expected Result: ASZgiz

Sort the string.

letters="ZzgiSA";
writeOutput(letters.sort())

Expected Result: ASZgiz


Fork me on GitHub