Sample code to sort by word length.