output_file: alphabetize and remove duplicates