Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

•Re^2: Sorting - lower to upper

by merlyn (Sage)
on Jul 15, 2004 at 17:04 UTC ( [id://374724]=note: print w/replies, xml ) Need Help??


in reply to Re: Sorting - lower to upper
in thread Sorting - lower to upper

Ditto what I said in •Re^2: Sorting - lower to upper. I guess I'm going to have to watch every node in this thread.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^3: Sorting - lower to upper
by orderthruchaos (Scribe) on Jul 15, 2004 at 17:23 UTC
    Taking merlyn's advice into account, I'll change my answer;-)

    --from above--

    Don't forget about the Schwartzian Transform:
    my %hash = qw/John 1 Bob 1 xavier 1 alice 1/; my @keys = map { (my $x = $_) =~ tr/a-zA-Z/A-Za-z/; $x } sort map { (my $x = $_) =~ tr/a-zA-Z/A-Za-z/; $x } keys %hash; print "@keys\n";
    Will give you
    alice xavier Bob John
Re^3: Sorting - lower to upper
by orderthruchaos (Scribe) on Jul 15, 2004 at 17:13 UTC
    Sorry about that... this thread is growing too fast for me to keep up!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-24 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found