Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Sorting an AoHoH or AoHoAoH

by Ido (Hermit)
on Jun 23, 2004 at 03:26 UTC ( [id://368933]=note: print w/replies, xml ) Need Help??


in reply to Re: Sorting an AoHoH or AoHoAoH
in thread Sorting an AoHoH or AoHoAoH

Using the Schwartzian Transform is very efficient when you want to do something with which element, and sort it by the result. In that case, generating a new list with items and their generated sorting "keys", lets you process each item only once, instead of many times.
But, in this case, you sort by an element of a hash, and the sort in the Schwartzian Transform must sort by an element of an array, so there's no gain. Actually, you lose, both time and simplicity.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found