Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: sort an array with +ve & -ve numbers in it

by plobsing (Friar)
on Apr 05, 2009 at 14:28 UTC ( [id://755567]=note: print w/replies, xml ) Need Help??


in reply to Re^4: sort an array with +ve & -ve numbers in it
in thread sort an array with +ve & -ve numbers in it

Typo alert: you have 2 sorts. The result is that you sort alphabetically after having sorted numerically.

Unfortunately, your test dataset doesn't show the problem. Try adding 100 to the data.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 13:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found