Array Sorting

okibi okibi at ratedo.com
Wed Jun 20 05:07:29 PDT 2007


Hey,

I was wondering if there is a way to sort three digit numbers.

Doing an array.sort will result in a sequence such as this:

1
10
2
24

What I want is it to get sorted like this:

1
2
10
24

Is there an easy way to specify this? Putting a 0 in front is not an option.

Thanks!


More information about the Digitalmars-d-learn mailing list