Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Sorting - HELP !

Hi all, I've got the problem where I would need to sort the following decimal
numbers: 2.1, 2.2, 2.10 in the followoing order 2.1, 2.2, 2.10, but in fact
I'm getting the following. 2.1, 2.10, 2.2. This is because during the sorting
the number 2.10 is treated as 2.1 and therefore it goes in front of 2.2

Any suggestions/ideas would be greatly appreciated.
[386 byte] By [Michael] at [2007-11-9 15:26:55]
# 1 Re: Sorting - HELP !
Take a look at the article here
http://www.xml.com/pub/a/2002/06/05/transforming.html
it just might help.

"Michael" <garband53@hotmail.com> wrote:
>
>Hi all, I've got the problem where I would need to sort the following decimal
>numbers: 2.1, 2.2, 2.10 in the followoing order 2.1, 2.2, 2.10, but in fact
>I'm getting the following. 2.1, 2.10, 2.2. This is because during the sorting
>the number 2.10 is treated as 2.1 and therefore it goes in front of 2.2
>
>Any suggestions/ideas would be greatly appreciated.
>
>
S. Brower at 2007-11-11 23:29:55 >