If you can convert the array to a struct of structs (which is easy if you have a PK), then you can use CF's native StructSort functionality.
======================================================================= Raymond Camden, ColdFusion Jedi Master for Hire Email : [EMAIL PROTECTED] Yahoo IM : cfjedimaster "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Paolo Cesana [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 26, 2002 9:37 AM > To: CF-Talk > Subject: Sorting an array of structures > > > Hi, > I have a an array of structures as follows: > array 1 > structure.key1 > structure.key2 > etc... > array 2 > structure.key1 > structure.key2 > etc... > > how would I go about sorting the above based on structure.key2? > > > > Tks/Rgds > > > > Paolo Cesana > IT Development Mgr. > "Electricity is not the result of a series of upgrades to the candle" > Auth. unknown > > > Miami International Forwarders (MIF) > > Phone: (305)594-0038 Ext. 7326 > Fax: (305)593-0431 > <mailto:[EMAIL PROTECTED]> > <http://www.mif.com/> > > ______________________________________________________________________ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists