> ArraySort, like all of the array functions, can only be used on
> one-dimensional arrays. A two-dimensional array in CF is nothing more,
> really, than a one-dimensional array in which each element is itself a
> one-dimensional array. You're asking ArraySort to sort your outer array
> (PartnerArray) by the elements within it, which are themselves arrays.
Often you've got a 2D array like this (this might not be the best example ie
you might say "use a structure instead" ;-), but it's just what comes to
mind):
[1] ProductID | Name | Price | Some other info..
[2] ProductID | Name | Price | Some other info..
[3] ProductID | Name | Price | Some other info..
[4] ProductID | Name | Price | Some other info..
and it *would* be nice to be able to sort the array by the first element in
each element. I struggled to get it to do that for ages before I realised it
just wasn't possible ;-)
BTW, CFWACK's coverage of arrays and structures is a bit scant. Are there
any good web pages that have plenty of examples of what's possible?
--
Aidan Whitehall <[EMAIL PROTECTED]>
ColdFusion Developer
Fairbanks Environmental +44 (0)1695 51775
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists