Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: sorting return from

by bmann (Priest)
on Sep 02, 2005 at 23:40 UTC ( #488816=note: print w/replies, xml ) Need Help??

in reply to sorting return from

If I read your question right (correct me if I'm wrong, it's a small data sample) you are asking how to sort the results by height, ascending.

If so, it makes the most sense to do it in SQL, ie SELECT Name, Age, Height FROM table ORDER BY Height ASC. Then you could step through it row by row, regardless of the size of the dataset returned.

If it must be sorted in perl, you'll need to either use one of the "fetchall*" methods or loop through all rows to store the full result set before sorting.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://488816]
[LanX]: I told you the story about the “new" currency trading system of Dresdner Bank
[LanX]: ?
[Corion]: No, or I don't remember the story ;)
LanX my favourite don't tell me the proof of concept is good enough for production anecdote

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2017-03-29 11:41 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (348 votes). Check out past polls.