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:304908
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