string.sort()

edit

Returns a string containing the sorted characters from the input.

string.sort( )

Returns: String

This function does not take any arguments.

Usage Notes

edit

Since Lucee 6, this function iterates over each character in the string.

For list-based iteration with delimiters, use string.listSort() instead.

LDEV-3747

Examples

edit
	letters="JohnWick";
	writeOutput(letters.sort());

See also