Given a sorted list of words, return the sorting criterion used to sort it.