Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl-Sensitive Sunglasses
 
PerlMonks  

RE: RE: RE: Re: Sorting on Section Numbers

by DrManhattan (Chaplain)
on Jul 28, 2000 at 14:37 UTC ( [id://24855]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to RE: RE: Re: Sorting on Section Numbers
in thread Sorting on Section Numbers

@sorted = map {$_->[0], ", "} sort {$a->[0] <=> $b->[0]} map {[$_, pack ("N*", $_)]} @unsorted;

For anyone who doesn't understand what the above code does, here are some nodes with explanations of the technique and some interesting discussion:

<list>
  • Schwartzian Transform
  • Sorting IP Addresses Quickly
  • A Fresh Look at Efficient Perl Sorting (thanks davorg)
  • -Matt

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://24855]
    help
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Notices?
      hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
      erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.