in reply to How do I sort something by date?

Actually the best idea would be to look at Schwartz's Learning Perl (3rd) book.

It tells you in Chapter 15 how to make perl  sort according to what you want. The default is the (weird) ASCIIbetical method. In that method Caps come before lower case letters, and punctuation comes in all different places. By using Chapter 15's lesson you can make it sort to however YOU want it to (yes, even your date idea).

<STDIN>

Originally posted as a Categorized Answer.