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?
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
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,
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
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
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
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
[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
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
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
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
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"
12 matches
Mail list logo