What version of CF? On CF9, the following works:
<cfset appVers = "3.6.1,3.6.5,3.6.3,3.6.10"> <cfoutput>#appVers#<br />#listSort( appVers, 'numeric', 'desc' )#</cfoutput> On Wed, Sep 22, 2010 at 9:26 AM, Tom Jones <[email protected]> wrote: > > thanks, > but I get an error saying cant convert "3.6.1" to numeric. > > tom > > >ListSort should work: > > > >http://www.cfquickdocs.com/cf8/#ListSort > > > >Although you might need to use the text sort instead of numeric. > > > > > > > >andy > > > >Hello, > >I have a lit of version numbers and I need to sort them in the right > order. > > > ><cfset appVers = "3.6.1,3.6.5,3.6.3,3.6.10"> > > > >How do I sort these so that they show in the right order starting with the > >highest first? > > > >Thanks, > >tom > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337325 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

