Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Sort and push

by targetsmart (Curate)
on May 15, 2009 at 06:49 UTC ( #764200=note: print w/replies, xml ) Need Help??

in reply to Sort and push

it is very easy; use sort after the for loop
you have to tell us on what kind of data you are trying to operate, it helps us to tell you what kind of sort you have to use
what $data[0] and $data[1] contain?

-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2023-12-09 21:19 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (38 votes). Check out past polls.