Thanks Barney...I was actually looking through the Java methods but couldn't
find that. Exactly what I'm looking for.

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 08, 2008 11:33 AM
To: CF-Talk
Subject: Re: CF8: Reversing arrays?

a = [1, 2, 3, 4, 5];
createObject("java", "java.util.Collections").reverse(a);
a.toString(); // [5, 4, 3, 2, 1]

Also of interest is Collections.sort(), which will sort an array using
natural ordering.  You'll get errors if the contains types aren't all
mutually naturally orderable (all implement Comparable<T>), of course.

cheers,
barneyb

On Thu, May 8, 2008 at 8:22 AM, Andy Matthews <[EMAIL PROTECTED]>
wrote:
> It used to be possible to reverse an array, at least in CF6 and CF7 using
the Reverse method. It appears however that Adobe has removed this
functionality in CF8. Is there any single tag/function which picks up this
functionality from the Reverse method?
>
>
>  Andy Matthews
>
>  



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304931
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to