change the algorithm to sort the words
change the way of sorting words