Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: sorting question

by dave_the_m (Monsignor)
on Oct 17, 2004 at 19:50 UTC ( [id://399958]=note: print w/replies, xml ) Need Help??


in reply to sorting question

@sorted_xy = sort { $a->[0] <=> $b->[0] || $a->[1] <=> $b->[1] } @xy;
or threreabouts

update:

I misinterpreted the structure of $xy; I thought it was a list of coordinate pairs. Use one of the other solutions instead!

Dave.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found