An interesting sort problem

Robert Nichols rnicholsNOSPAM at comcast.net
Fri Nov 13 19:42:56 UTC 2015


On 11/13/2015 01:32 PM, Robert Nichols wrote:
> Try it again with more than 10 lines in the input. That asort()
> will be doing a _string_ sort, so with 120 input lines the order
> will be 1, 10, 100, 101, 102, ... 109, 11, 110, 111, 112, ... 119,
> 12, 120, 13, 14, ... 19, 2, 20, 21, ... .

Sorry, misinterpreted what you were doing.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.



More information about the users mailing list