Deduplicate and sort a list in one pass
Cleanup runs before sorting: trim surrounding spaces, drop blank rows, keep the first exact occurrence, then alphabetize the remaining lines. Change review shows removed occurrences with their original line numbers, so you can account for a shorter result.
Example: input and output
banana apple banana cherry apple
apple banana cherry
Use Load sample in the tool to try this example.
Rules and limits
Capitalization is significant by default on this page. Enable Ignore case to merge Apple and apple. To remove duplicates while keeping the original sequence, use Remove Duplicate Lines in Preserve mode.
Questions and answers
Which duplicate is kept?
The first occurrence after the selected cleanup is retained, then the unique result is sorted.
Can I keep the original order?
Use Remove Duplicate Lines with Preserve selected instead of this alphabetizing preset.
Is my text uploaded?
No. Processing happens locally in your browser. No account is required. Settings links share options, not your text.