MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 453

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions
429
<CFOUTPUT>
#sortedList#
</CFOUTPUT>
<P>Here is a numeric list that is to be sorted in descending order.</P>
<CFSET sortedNums = ListSort("12,23,107,19,1,65","Numeric", "Desc")>
<CFOUTPUT>
#sortedNums#
</CFOUTPUT>
<P>Here is a list that must be sorted numerically, since it contains both
negative and positive numbers, as well as decimal numbers. </P>
<CFSET sortedNums2 = ListSort("23.75;-34,471:100,-9745","Numeric",
"ASC", ";,:")>
<CFOUTPUT>
#sortedNums2#
</CFOUTPUT>
<P>Here is a list that is to be sorted alphabetically without
consideration of case.</P>
<CFSET sortedMix = ListSort("hello;123,HELLO:jeans,-
345,887;ColdFusion:coldfusion", "TextNoCase", "ASC", ";,:")>
<CFOUTPUT>
#sortedMix#
</CFOUTPUT>
</BODY>
</HTML>

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents