On Wed, Sep 22, 2010 at 3:16 PM, Leigh <[email protected]> wrote:
> > > What would be the difference between *really* working and > > just seeming to? > > For me ... more testing and more coffee ;-) Specifically with a greater > range of values, such as version numbers before and after the "3.x.x" range. OK you twisted my arm into indulging in another cup of coffee (mmm.... coffee). You're correct. It only "seemed to" work with the originally given values. Changing the list to: <cfset appVers = "10.2.4,3.6.1,3.6.5,3.6.3,3.6.10,1.2.5"> Resulted in a "sorted" list of: 3.6.1, 3.6.3, 10.2.4, 1.2.5, 3.6.5, 3.6.10 > >> I was more > >> surprised that it seemed to have worked than I would have > > Exactly, and that is why I am suspicious. I was not expecting "text" to > work at all, for obvious reasons. Neither was I expecting "numeric" to work > because values like 3.6.1 are not numeric. At least not in the strict sense. > Hence my reluctance to say it "it works" CF -is- treating these like some sort of numeric value tho... because if I added a value like 10.2.5.4 to the original list, a numeric listSort fails saying a non-numeric value was found. So CF sees x.x.x as a valid numeric value, but apparently not base 10 based on the sorted result above. -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:337343 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

