Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Sorting by numbers

by mp (Deacon)
on Aug 14, 2002 at 18:52 UTC ( [id://190191]=note: print w/replies, xml ) Need Help??


in reply to Sorting by numbers

From: perldoc -f sort

# sort numerically ascending @articles = sort {$a <=> $b} @files;

Replies are listed 'Best First'.
Re: Re: Sorting by numbers
by waswas-fng (Curate) on Aug 14, 2002 at 19:26 UTC
    or to get them in the order he posted in: @a = sort { $b <=> $a } @list; =)

    -Waswas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-16 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found