> What I had in mind was something like this:
Hey, CFSORT won't cope with this will it? I just tried the code below and it
seems that the column is sorted but the other column doesn't get rearranged
correspondingly. Do you need to write your own bubble sort or something??
I'm guessing from the absence of dealing with this obvious issue in the CF
docs that you do need to write your own sort.
<cfset PriceList=ArrayNew(2)>
<cfset PriceList[1][1]="cabbage">
<cfset PriceList[1][2]="broccoli">
<cfset PriceList[1][3]="brussels sprout">
<cfset PriceList[1][4]="pumpkin">
<cfset PriceList[2][1]="$3">
<cfset PriceList[2][2]="$1">
<cfset PriceList[2][3]="$2">
<cfset PriceList[2][4]="$4">
<CFSET temp = ArraySort(PriceList[1], "textnocase", "asc")>
<cfoutput>
<cfloop index="i" from="1" to="4">
#PriceList[1][i]# #PriceList[2][i]#<br>
</cfloop>
</cfoutput>
------------------------------------------------------------------------------
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.