create a word sorting programing