Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: sort hash by value

by greywolf (Priest)
on Mar 20, 2006 at 21:09 UTC ( #538051=note: print w/ replies, xml ) Need Help??

in reply to Re^2: sort hash by value
in thread sort hash by value

The OP alludes to the fact that the hash values are numbers while the keys are strings. He will want to use '<=>' rather than 'cmp' to sort the number values properly.

mr greywolf

Comment on Re^3: sort hash by value

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-11-30 20:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (782 votes), past polls