What would you be sorting by??  In a two dimensional array each array
element in the first level only contains a pointer to another array.  I can
only figure you want to sort by a specific item in the second dimension
(i.e. an array of users where each array contains a sub-array of userinfo
such as Fname, Lname, etc.... and you want to sort by Fname).  In this case
you should probably be using an array of structs, but no matter.  If you
need to sort then you should re-think the whole way this is structured.
Perhaps using nested lists...


 

Bryan Love Macromedia Certified Professional
Internet Application Developer / Database Analyst
Telecommunication Systems Inc.
[EMAIL PROTECTED]
 

"What father would hesitate to say 'if there must be trouble let it be in my
day, that my child may have peace'?"
        - Thomas Paine, An American Crisis



-----Original Message-----
From: Kevin Derby [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 20, 2001 10:37 PM
To: CF-Talk
Subject: Sort two-dimensional array


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.

TIA


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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