Re: Sort problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu