Sort lines of text alphabetically (A-Z or Z-A), numerically, by length, or randomly (shuffle) with case sensitivity and deduplication controls.
Alphabetical (A-Z / Z-A), Natural Numeric (1, 2, 10 instead of 1, 10, 2), Line Length, and Random Shuffle.
Correctly orders items with embedded numbers (e.g., item1, item2, item10) naturally.
Optionally strip empty lines and remove duplicate entries while sorting.
Sort private customer datasets and proprietary code with zero server upload.
The Text Sorter splits your text into an array of lines and applies optimized JavaScript sorting algorithms.
For alphabetical and numeric ordering, it utilizes Intl.Collator with numeric collation enabled ({ numeric: true, sensitivity: "base" }) for accurate natural language sorting across international alphabets.
The sorted line array is joined and rendered back to the output view in milliseconds.
Sort book references, author lists, and glossary definitions in alphabetical order.
Alphabetize JavaScript ES6 import statements and CSS property rules for clean code reviews.
Sort product SKU lists, zip codes, and customer rosters numerically or alphabetically.
Randomize participant names for prize drawings, contest winners, or flashcard study lists.
Standard alphabetical sorting puts "item10" before "item2". Natural sorting recognizes embedded numbers, ordering them correctly: item1, item2, item10.
Yes. You can sort from shortest line to longest line, or vice versa.
Yes. Softnag uses locale-aware unicode collation to sort international characters correctly.
No. All sorting algorithms run strictly within your local browser memory.
Yes. Check the "Remove Duplicates" option to deduplicate and sort your list in a single click.
Natural sorting orders numbers within text logically so that "Item 2" comes before "Item 10" rather than lexical ordering.