Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about Sort/Order 2

Status
Not open for further replies.

junkjones

Programmer
Jul 14, 2000
52
GB
This is probably a total newbie question, but I can't seem to find the answer!

I want to generate a query and sort in decsending order. I've been using

ORDER by startdate

which does it in acsending order, but now I want to sort in the opposite direction, I found this tag:

sort="startdate DESC"

but that is from a cfdirectory tag, not a cfquery tag. What is the proper syntax to put in my query to sort in decending order?

Thanks!!
[sig][/sig]
 
To junkjones,

The easiest way is to sort it descending order in your sql query.

e.g. ORDER by startdate DESC

for your above example [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top