Dude, where's my car?

-----Original Message-----
From: Adkins, Randy [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 2:01 PM
To: CF-Talk
Subject: RE: ArraySort rarararar!!


Dude, the 3rd parameter is not required :-)

-----Original Message-----
From: Mookie Bear [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 1:57 PM
To: CF-Talk
Subject: Re: ArraySort rarararar!!


hey dude, the arraysort function takes 3 arguments.  you only provided the 
first 2.  the last argument is the sort order.  possible values are "asc" 
and "desc".  BAHEHEHE!!  rarararar!!








>From: "Adkins, Randy" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: ArraySort
>Date: Fri, 30 Nov 2001 13:45:12 -0500
>
>This is something that I serious MUST be overlooking.
>Eyes are bloodshot right now from coding.
>
>
>I have a 2 dimential array such as follows:
>
>myArray[1][1] = 'JOHN'
>myArray[1][2] = 'DOE'
>myArray[1][3] = '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'>
>myArray[1][4] = 'TEXAS'
>myArray[1][5] = 'USA'
>
>myArray[2][1] = 'BARRY'
>myArray[2][2] = 'JOHNSON'
>myArray[2][3] = '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'>
>myArray[2][4] = 'CALIFORNIA'
>myArray[2][5] = 'USA'
>
>I need to SORT the array before outputting the data.
>Sounds simple right???
>
>It should come out:
>     BARRY JOHNSON
>     JOHN DOE
>
>When using the command:
><cfset sortit = ArraySort(myarray,"textnocase")>
>
>Question #1:
>     When using the ArraySort, it should evaluate all the dimensions with 
>in
>the array for sorting, correct?
>     OR does it only sort on ONE dimension?
>
>Question #2:
>     When using the command above, why do I get the following error:
>
>Error Occurred While Processing Request
>
>
>
>
>
>Error Diagnostic Information
>
>
>
>An error occurred while evaluating the expression:
>
>
>
>  sortit = ArraySort(myarray,"textnocase")
>
>Error near line 245, column 8.
>
>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.
>
>The most likely cause of the error is that you are trying to use a complex
>value as a simple one. For example, you may be trying to use a query
>variable in a <CFIF> tag. This was possible under Cold Fusion 2.0 but is an
>error under later versions.
>
>
>
>Randy Adkins
>Tech Lead - Novient
>SRA International
>[EMAIL PROTECTED]
>(703) 803-1677
>
>
>
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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