in reply to How do I write my own sorting routine?

Actually the best way to find out is to look at Learning Perl by O'REILLY Chapter 15, Strings and Sorting. This tells you how to change the default sorting into your custom sorting system. I understand the need to change from ASCIIbetical. It is a very odd sorting method.

<STDIN>

Originally posted as a Categorized Answer.