• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

ListSort

Synopsis

                   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>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint