It actually makes a lot of sense. The comparison is done similar as you would sort words, in lexicographical order. After all, words are also lists: lists of characters. You first consider the first item. If one is smaller, the whole sequence is smaller, if they are equal, you move...