Whilst he described it in terms of sorting an arbitrary alphabet, it's not limited to alphabets. What if you want to combine the normal English sort order with a custom sort-order for punctuation characters? Such as ignoring the $ and @ signs, so that $_ and @_ get sorted together rather than having a bunch of crap in between.