Sorting strings containing numbers in a user friendly way
The mother of all sorts:
ls '*.mp3' | sort --version-sort
Jeff wrote up an article about this on Coding Horror. This is called natural sorting, where you effectively treat a group of digits as a single "character". There are implementations out there in every language under the sun, but strangely it's not usually built-in to most languages' standard libraries.