Try adding "ASCII(lastname) AS thesortkey" into your select clause, then
group by thesortkey and order by lastname at the end of your where clause.
~Simon
Simon Horwith
Macromedia Certified Instructor
Certified ColdFusion Developer
Fig Leaf Software
1400 16th St NW, # 500
Washington DC 20036
202.797.6570 (direct line)
www.figleaf.com
-----Original Message-----
From: Christine Kelley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 1:28 PM
To: CF-Talk
Subject: <cfoutput> lists Alphabetically
Hi!
How do I output a whole list of names from a query
grouped alphabetically? Output example:
A
Allen, Bob
Ames, John
B
Book, Sam
Briant, Max
I'm thinking it's by somehow using the group attribute of
the <cfoutput> tag or looping through the query, but I'm
not sure exactly how to get these results.
Thank-you for any help!
Christine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists