in reply to How do I sort a list of numbers?

Here is my answer, You need to use the sort command structure. Like this...

@sortedlist = sort @unsortedlist That will sort your list in  ASCIIbetical order. ASCII is a strange place where Caps come before lower case letters and punctuation marks-well they come in all different places. This is the default behavior of sort. You can change this order to whatever you prefer.

<STDIN>

Originally posted as a Categorized Answer.