http://www.perlmonks.org?node_id=755285


in reply to Re^2: sort an array with +ve & -ve numbers in it
in thread sort an array with +ve & -ve numbers in it

Easier and simpler, but less efficient (O n log n, perhaps) than jwkrahn's approach (O n). Of course this won't matter for small data sets.