Uhm... What exactly do you need to sort? There's all sorts of ways to do it,
no pun intended.
If you're just sorting each individual row, do it like this... otherwise do
an Amazon search for Don Knuth. ;)
<cfcontent type="text/plain">
<cfscript>
myArray = ArrayNew(2);
myArray[1] = ListToArray("1,4,2,3");
myArray[2] = ListToArray("5,3,1,2");
for(i=1; i LTE ArrayLen(myArray); i = i + 1) {
ArraySort(myArray[i], "numeric");
for(j=1; j LTE ArrayLen(myArray[i]); j = j + 1) {
WriteOutput("myArray[" & i & "][" & j & "] = " & myArray[i][j]
&
Chr(10));
}
}
</cfscript>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.