Sort the words in a given sentence