Parameter
Last updated on
16 May 2021
Description
Sorts an input string.
Returns
Sorted string.
Category
Syntax
StringSort(string inputString)
History
ColdFusion (2021 release): Added in this release.
Parameters
|
Description |
---|---|
inputString |
(Required) The string to sort. |
Example
<cfscript> myCities="San Francisco"; writeOutput(StringSort(myCities)); </cfscript>
Output
FSaaccinnors
Example 2
<cfscript> cityArray = "LONDON"; sortedVal= StringSort(cityArray); writeoutput(sortedVal) </cfscript>
Output
DLNNOO