August 2001
Intermediate to advanced
976 pages
38h 8m
English
ListSort — New as of ColdFusion 4.01
ListSort(list, sort_type[,order] [,delimiters])
Sorts a list based on the sort_type
(numeric, text, or
textnocase) and optionally, the sort
order (asc, the
default, or desc). An optional delimiter can be
specified if the list is delimited with a character other than the
comma (the default). The following example sorts a list by
alphabetical order:
<CFSET MyList = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday"> <CFOUTPUT> <B>List:</B> #MyList#<BR> <B>Sorted by Alphabetical Order:</B> #ListSort(MyList, 'text')# </CFOUTPUT>
Read now
Unlock full access