List Sorter
Sort a line-by-line list alphabetically, by length, numerically, randomly, or in reverse.
About This Tool
The List Sorter reorders a line-by-line list using eight sorting modes: alphabetical A→Z, reverse Z→A, shortest first, longest first, numeric ascending, numeric descending, reverse order, and random shuffle.
The Remove Duplicates option keeps only the first occurrence of each unique item. Trim Whitespace strips leading and trailing spaces from each item before sorting. Empty lines are always excluded from the output.
How to Use
- Enter or paste items in the input area, one per line.
- Select the desired sort mode from the dropdown.
- Toggle Remove Duplicates and Trim Whitespace as needed.
- The sorted result appears instantly on the right — copy it or paste it elsewhere.
Use Cases
Developers sorting import lists or dependency arrays, data analysts needing a deduplicated sorted list, testers reordering test case names, and content writers shuffling brainstormed ideas.
FAQ
- How does numeric sorting work? Numeric sort parses each line as a floating-point number and sorts by numeric value. Non-numeric items are treated as 0.
- Does it work with non-ASCII text like Korean or Chinese? Yes. Alphabetical sort uses JavaScript's localeCompare, which supports Unicode characters. The exact sort order for non-Latin scripts depends on the browser's locale settings.
- How many items can it handle? This tool runs entirely in the browser and handles thousands of lines without issue. Very large lists (hundreds of thousands of lines) may be limited by available browser memory.