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


in reply to Re: Numeric sorting WITHOUT <=>
in thread Numeric sorting WITHOUT <=>

Don't really need the explicit cmp:

my @sorted = sort map { sprintf '%09d', $_ } keys %jetsons;

Replies are listed 'Best First'.
Re^3: Numeric sorting WITHOUT <=>
by GrandFather (Saint) on Oct 10, 2012 at 20:31 UTC

    But that's nearly half the length so it can't be near half so good. :-)

    True laziness is hard work