August 2003
Intermediate to advanced
1140 pages
68h 45m
English
ListSort
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>