Words are arranged based on the first letter, followed by the second letter if the first letters are the same, and so on.