Write words in ABC order