Sort Lines
Sort lines alphabetically, reverse, or by length.
Input
Output
How does sorting work?
Lines are split by newline and sorted with JavaScript's locale-aware comparison. Works with any language.
What about duplicates?
Duplicates stay. Use our Remove Duplicate Lines tool to dedupe.