Text Sorter
Sort lines of text alphabetically, by length, randomly, or in reverse. Remove duplicates with one click.
0 lines
About Text Sorter
The text sorter is a versatile tool for organizing lists of items. Sort alphabetically for lists, by length for analyzing text patterns, or shuffle randomly for selecting items. Remove duplicate lines to clean up data quickly.
How to Use
- Enter your items in the input textarea, one item per line.
- Choose your sort method and any options (case sensitivity, remove duplicates).
- The sorted result appears instantly in the output textarea.
- Click "Copy" to copy the sorted result to your clipboard.
How It Works
The tool splits your input text by line breaks, applies the selected sorting algorithm, optionally removes duplicates, and joins the lines back together for the output.
FAQ
In case-sensitive mode, uppercase letters sort before lowercase (A before a). In case-insensitive mode, "Apple" and "apple" are sorted as equal, giving more natural alphabetical order.
The random shuffle uses the Fisher-Yates algorithm to produce a uniformly random permutation of your lines. Each click produces a different order.
When "Remove duplicates" is checked, duplicate lines are detected after trimming (if that option is enabled). Case matters unless you uncheck "Case sensitive".