Try this out. You need to sort by a text value of the hier_num select hier_num, hier_desc, convert(varchar(20),hier_num) hier_text from hiertbl order by hier_text
Cheers, Kris On Thu, Apr 3, 2008 at 4:37 PM, Paul Ihrig <[EMAIL PROTECTED]> wrote: > if i have a bunch of numbers that i want to order like this in a drop > dowm, how do i do it? > the origional order by id was fine when the list was small.. > but now it has grown. > forcing it to look the way we want below is boggeling.. > 1 > 101 > 101010 > 2 > 201 > 202 > 201010 > 201020 > 3 > 302 > et....... > > <cfquery name="get_PH" datasource="xxx"> > SELECT hier_num, .hier_desc > FROM hierarchy > </cfquery> > > if i order by hier_num > it just does as expected > 1 > 2 > 3 > 101 > 201 > 301 > et.... > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:302659 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4