Re: Sort problem
- Posted by Andy Serpa <ac at onehorseshy.com> Jun 10, 2007
- 592 views
don cole wrote: > > > Hello Anybody maybe Andy Serpa, > > I am trying to sort some numbers. These are all strings. > > Lowest number "0888". highest number "4430". > > After sort() or nat_sort() I still get "0888" as the highest number and "1067" > as the lowest. > > Any advice welcome. > You must be doing something wrong? If you use leading zeros like in "0888" so that all strings are the same length even regular sort will work correctly (in numeric order). Take a closer look at your code, or post it...