Example of implementing sort() method on alphabets