Function sorts list of strings by length of word, and then alphabetically