What I had in mind was something like this:

Initial array [item][cost]:

[car][20,000]
[apple][1.50]
[house][150,000]
[banana][0.75]

Sorted Array (sorted by [item]:

[apple][1.50]
[banana][0.75]
[car][20,000]
[house][150,000]





>Uhm... What exactly do you need to sort? There's all sorts of ways to do it,
>no pun intended.
>
>If you're just sorting each individual row, do it like this... otherwise do
>an Amazon search for Don Knuth. ;)
>
><cfcontent type="text/plain">
><cfscript>
>       myArray = ArrayNew(2);
>       myArray[1] = ListToArray("1,4,2,3");
>       myArray[2] = ListToArray("5,3,1,2");
>       for(i=1; i LTE ArrayLen(myArray); i = i + 1) {
>               ArraySort(myArray[i], "numeric");
>               for(j=1; j LTE ArrayLen(myArray[i]); j = j + 1) {
>                       WriteOutput("myArray[" & i & "][" & j & "] = 
>" & myArray[i][j] &
>Chr(10));
>               }
>       }
></cfscript>
>
>
>------------------------------------------------------------------------------
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_tal 
>k or send a message to [EMAIL PROTECTED] with 
>'unsubscribe' in the body.

___________________________________________________________________________
  Joseph J. Sanger, M.D.                        | Phone: (212) 263-7410
  Associate Professor of Clinical Radiology     | Fax:   (212) 263-2039
  Director, Division of Radiology Informatics   |
  Co-Director, Division of Nuclear Medicine     |
  Co-Director, Nuclear Cardiology               |
  New York University School of Medicine        | [EMAIL PROTECTED]
___________________________________________________________________________
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to