Re: sorting strings as integers

2004-06-23 Thread Michael Stassen
Ole Kasper Olsen wrote: Hi, I have a database column (VARCHAR) consisting of the following kind of data: 1 1.1 1.2.1.2 1.10.1 1.2 1.4.1 I need to sort this colum so that the result will be 1 1.1 1.2 1.2.1.2 1.4.1 1.10.1 I was hoping that just using "ORDER BY [column] ASC" would work, but alas,

sorting strings as integers

2004-06-23 Thread Ole Kasper Olsen
Hi, I have a database column (VARCHAR) consisting of the following kind of data: 1 1.1 1.2.1.2 1.10.1 1.2 1.4.1 I need to sort this colum so that the result will be 1 1.1 1.2 1.2.1.2 1.4.1 1.10.1 I was hoping that just using "ORDER BY [column] ASC" would work, but alas, it only works for numbe