DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Sorting - HELP !

  1. #1
    Michael Guest

    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.



  2. #2
    S. Brower Guest

    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.
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center