in reply to Re: Sorting Outline Numbers
in thread Sorting Outline Numbers

Using sprintf to recreate the numbers would be rather more efficient:

my @sorted = map sprintf('%vd', $_), sort map join('', map chr, split /\./), @data;

Hugo

Replies are listed 'Best First'.
Re^3: Sorting Outline Numbers
by japhy (Canon) on Aug 11, 2005 at 12:25 UTC
    Wow, I forgot entirely about that. I eschew the whole version-format idiom for numbers.

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart