stringSort

Sorts an input string.

stringSort(inputString) → returns string

Member Function Syntax

inputString.sort()

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

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub