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

fast, flexible, stable sort

by tye (Sage)
on Aug 27, 2003 at 19:56 UTC ( [id://287149]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @sorted=
        map { RESTORE($_) }
        sort
        map { XFORM($_) }
        @list;
    
  2. or download this
    sub XFORM {
        # Extract the sort key from $_[0] and return it.
    ...
        map { XFORM($list[$_]) . pack "N", $_ }
        0..$#list
    ];
    
  3. or download this
    my @index=
        map { unpack "N", substr($_,-4) }
    ...
        0..$#name;
    @name= @name[@index];
    @data= @data[@index];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://287149]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 00:53 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found