in reply to How do I sort something alphabetically?

Sort also lets you use a block in place of a function:
@list = sort { lc($a) cmp lc($b) } @list

So often you need to make a bunch of tiny little otherwise useless functions.

-Ted

Originally posted as a Categorized Answer.