Convert the list to an array, sort it, then convert it back to a list. The
sort order in the arraySort function allows you to sort the array either
numerically or alphebetically with or without case-sensitivity.
<cfscript>
// Convert list to array to sort
myArray = listToArray(variables.lst_toDo, ",");
// Sort the array
variables.temp = arraySort(myArray, "text", "asc");
// Convert array back to list
variables.lst_toDo = arrayToList(myArray, ",");
</cfscript>
-----Original Message-----
From: Pecora, James [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 27, 2000 11:52 AM
To: '[EMAIL PROTECTED]'
Subject: Ordering a list
Any way to order a list easily???
Say I have a LIST and I want it alphabetized?
I am looping thry the list and would like to have some contro over the
display order...
thanks
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.