What you've got there is an ASCII sort.

You want a numeric sort.

ListSort(myList,"numeric")

> -----Original Message-----
> From: Jillian Carroll [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 5:51 PM
> To: CF-Talk
> Subject: Sorting Numbers
> 
> 
> How do I sort a list so that it doesn't do this:
>  
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10
> 100
> 101
> 102
> 103
> 104... 
>  
> I want 11 to come after 10.
>  
> Thanks!
>  
> --
> Jillian
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to