Sort Lines / Sort List Online
Sort a list of words, names, or numbers — alphabetically A→Z or Z→A, numerically, or randomly. Paste any list and get sorted results instantly.
How to use the sort lines / sort list online
Paste your list — one item per line or comma-separated — then pick a sort mode. The output uses the same format as the input. Results appear instantly.
Formula & explanation
A→Z and Z→A use lexicographic (Unicode) order. 1→9 and 9→1 parse each line as a float so 10 sorts after 9, not before. Shuffle uses the Fisher-Yates algorithm.
Examples
Names: Alice, Charlie, Bob → Alice, Bob, Charlie. Numbers: 10, 9, 2 → 2, 9, 10 (1→9 mode) or 10, 9, 2 (9→1 mode).
Frequently asked questions
- Why does A→Z put '10' before '9'?
- Alphabetical sort compares characters left to right, so '1' comes before '9'. Use 1→9 or 9→1 to sort by actual number value.
- Is alphabetical sort case-sensitive?
- Yes — uppercase letters sort before lowercase in Unicode order. Convert to the same case first using the Case Converter tool if needed.
- What algorithm does Shuffle use?
- Fisher-Yates (Knuth) shuffle — produces an unbiased random permutation of the lines.
- Can I sort by a specific column in CSV data?
- Not directly — this tool sorts whole lines. Extract the column first with the Column Picker tool, sort it, then re-combine.
Related text & string tools
- Text DiffSide-by-side diff comparison of two text blocks with line-by-line highlighting. Shows added, removed, and changed lines — useful for comparing document versions or config files.
- Remove Duplicate LinesRemove duplicate lines from any list or text block while preserving original order. Optionally trim whitespace and ignore case before deduplication. Results update instantly.
- Text ReverserReverse the characters, words, or individual lines of any text. Useful for debugging palindromes, creating mirror text, or just having fun with strings.
- Find & ReplaceBulk find and replace across any block of text with plain text or regex patterns. Supports case-sensitive matching, global replace, and regular expression capture groups.
- Lorem Ipsum GeneratorGenerate paragraphs, sentences, or words of classic lorem ipsum placeholder text. Choose the amount and copy instantly — useful for mockups, wireframes, and design prototypes.
- Word & Text CounterCount words, characters, lines, sentences, and reading time instantly. Paste any text — article, essay, or code — and get a live breakdown. Also shows unique word count and average word length.