I don't think you can do it easily.

My approach if using CF5 would probably be to convert the array into a 
query and then run a query-of-query on that query to re-order, then convert 
the query back into an array.

If using CF4.5, I'd take a copy of the array, sort the copy of the array on 
the first column, then run through the sorted array filling the second 
column for each row by grabbing the correct value out of the first array 
indexed by the first column in the the sorted array.

Clear as mud ?

At 06:37 PM 10/21/2001, you wrote:
>Is it possible to sort a two-dimensional array, specifically by sorting on
>the first column while still retaining the second column's association with
>the first?
>
>There was something on Depressed Press, but I wasn't quite sure if/how it
>pertained to my predicament.
>
>Any help appreciated.


----------
James Sleeman
Innovative Media Ltd
Phone: (03) 377 6262
http://www.websolutions.co.nz/

CAUTION: The information contained in this email message is confidential 
and may be legally privileged. If the reader of this message is not the 
intended recipient you are notified that any use, dissemination, 
distribution or reproduction of this message is prohibited. If you have 
received this message in error please notify the sender immediately and 
destroy the original message and any attachments.

Views expressed in this communication may not be those of Innovative Media 
Ltd.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to