Well it would depend on the type of loop you are doing.  With a from to loop
you can step backwards, something like this:

<CFOUTPUT>
<CFLOOP from="10" to="1" index="i" step="-1">
        #i#<BR>
</CFLOOP>
</CFOUTPUT>

So you can use it like that to call queries, or arrays by changing the form
value to the length of the array or the row count of the query.

Tim Heald
ACP/CCFD
Application Development
www.schoollink.net

-----Original Message-----
From: Jake McKee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 9:08 PM
To: CF-Talk
Subject: CFLOOP sort order


Is there an easy way to spit out the contents of a CFLOOP backwards? So
if my CFLOOP yields this:


Item 1
Item 2
Item 3
Item 4


. how do I make it spit out this:


Item 4
Item 3
Item 2
Item 1



Thanks!



______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to