Sorting Multidimensional Array that contain dates

2011-10-17 Thread Rick T
I got this array CFSET temp = ArrayNew(1) CFSET temp[1][1] = 5/1/2011 CFSET temp[1][2] = Sally CFSET temp[2][1] = 3/4/2011 CFSET temp[2][2] = John How do I sort this array so that the John on 3/4/2011 is first in the array?

Re: Sorting Multidimensional Array that contain dates

2011-10-17 Thread Alan Rother
http://www.cflib.org/udf/ArraySort2D =] On Mon, Oct 17, 2011 at 2:45 PM, Rick T rtuinenb...@gmail.com wrote: I got this array CFSET temp = ArrayNew(1) CFSET temp[1][1] = 5/1/2011 CFSET temp[1][2] = Sally CFSET temp[2][1] = 3/4/2011 CFSET temp[2][2] = John How do I sort this array so

Re: Sorting Multidimensional Array that contain dates

2011-10-17 Thread Rick T
Thanks Alan that worked, here is the final code that made it work for my situation: cfscript /** * Sorts a two dimensional array by the specified column in the second dimension. * * @return Returns an array. * @author Robert West (robert.w...@digiphilic.com) * @version 1, October 8,

Sorting an array of structures

2002-08-26 Thread Paolo Cesana
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

RE: Sorting an array of structures

2002-08-26 Thread Raymond Camden
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

Re: sorting an array

2001-09-03 Thread Sharon Fling
Thanks WebGuy, I just downloaded it and am gonna give it a try... Sharon - Original Message - From: Kevin Langevin [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, September 02, 2001 10:43 PM Subject: RE: sorting an array Don't know if this is what you're looking

sorting an array

2001-09-02 Thread Sharon Fling
Hi, Is there a way to sort an array by one element in the array? I have an array with 16 elements, one of which is a date. Is there a way to sort the entire array by this date field? Thanks. Sharon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

RE: sorting an array

2001-09-02 Thread Kevin Langevin
[EMAIL PROTECTED] -Original Message- From: Sharon Fling [mailto:[EMAIL PROTECTED]] Sent: Monday, September 03, 2001 12:56 AM To: CF-Talk Subject: sorting an array Hi, Is there a way to sort an array by one element in the array? I have an array with 16 elements, one of which

RE: Sorting an Array

2001-03-10 Thread Philip Arnold - ASP
Been trying to sort a 2 dimensional array and am having trouble. The fisrt element is numeric, the 2nd is text. I'm trying to sort in numeric order on the 1st item and can't get it to work. OK, please tell me you're not using ArraySort() - this only sorts one dimensional arrays You'd have to

Sorting an Array

2001-03-09 Thread Matt Rodosky
Been trying to sort a 2 dimensional array and am having trouble. The fisrt element is numeric, the 2nd is text. I'm trying to sort in numeric order on the 1st item and can't get it to work. Any help is appreciated. TIA Matt ~~ Structure your

RE: Sorting an Array

2001-03-09 Thread Hayes, David
Show your code. -Original Message- From: Matt Rodosky [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 1:31 PM To: CF-Talk Subject: Sorting an Array Been trying to sort a 2 dimensional array and am having trouble. The fisrt element is numeric, the 2nd is text. I'm trying to sort

Sorting an Array

2000-07-10 Thread Johnson, Dana
Hello All: Need help on sorting an query I have a query that has two fields field 1, field 2 field 1 is a varchar field 2 is a varchar field 1 however has numeric data i.e. 0 through 100 I must sort on field 1 and output on field 2 here is the current query CFQUERY NAME="CONS4"