Whatever message this page gives is out now! Go check it out!

StringSort

Last update:
May 18, 2026

Description

Sorts an input string.

Returns

Sorted string.

Category

Syntax

StringSort(string inputString)

History

ColdFusion (2021 release): Added in this release.

Parameters

Parameter
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

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page