As far as I know you can't use ArraySort on a 2-dimensional array.  I found
this to be extremely frustrating at one point and ended up working around it
in some strange way.  I would imagine that you could build a structure
rather than an array and then use StructSort()...?

HTH,

Evan

> -----Original Message-----
> From: Bernd VanSkiver [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 11:27 AM
> To: CF-Talk
> Subject: ArraySort()
>
>
> I am having problems with ArraySort() function.  Has a
> 2 dimensional array with one column having text and
> the other having integers.  Here is what I am doing:
>
> <cfscript>
>  ArraySort(PartnerArray, "text");
> </cfscript>
>
> And it gives me this error:
>
> The expression has requested a variable or an
> intermediate expression result as a simple value,
> however, the result cannot be converted to a simple
> value. Simple values are strings, numbers, boolean
> values, and date/time values. Queries, arrays, and COM
> objects are examples of complex values.
>
> Any ideas?  Not much documentation that I could find
> on ArraySort()
>
> =====
> Bernd VanSkiver
> [EMAIL PROTECTED]
> ColdFusion Developer
> ICQ UIN: 916324
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to