wordOrder returns an array of words sorted by appearance, without duplicates.