Sort any list of items quickly and easily. Paste your list, choose a sort mode, and get instant results. Options include alphabetical, reverse alphabetical, by shortest or longest line, and random shuffle. Combine with duplicate removal and whitespace trimming. All processing runs locally in your browser.
Input
Sorted output
SORT OPTIONS
The input is split on newlines to produce an array of lines. Trim whitespace applies String.trim() to each line. Remove duplicates uses a Set keyed on the lowercased line to preserve the first occurrence. Sort modes use Array.sort() with localeCompare() for alphabetical ordering or a length comparison for length-based modes. Shuffle uses the Fisher-Yates algorithm with Math.random(). The result array is joined back with newlines. All processing runs in JavaScript in your browser.
All processing happens locally in your browser tab. Our servers are not involved at any point.
For swapping recurring substrings across the list, try find and replace. To compare two sorted lists side by side, use text diff. For checking item counts after deduplication, see the word counter.