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

Re: Sorting data problem

by sachmet (Scribe)
on Dec 30, 2004 at 05:25 UTC ( [id://418184]=note: print w/replies, xml ) Need Help??


in reply to Sorting data problem

<=> is a numeric comparison operator. Use cmp instead, which sorts the strings alphabetically. If case is not important, use { lc($a) cmp lc($b) } for your sort.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-28 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found