Text Tools
Sort Lines
Sort text lines alphabetically, numerically, or in random order.
Loading tool...
Related developer tools
Continue with Regex Escape, Regex Tester, Text Diff.
How to Use Sort Lines
- Enter or paste your input in the text area above
- The tool will process your input automatically or click the action button
- Copy the result using the copy button
Frequently Asked Questions
How does sorting work?
- Lines are sorted alphabetically using Unicode character comparison. You can choose ascending or descending order.
Is sorting case-sensitive?
- By default, sorting is case-insensitive. You can enable case-sensitive sorting in the options.
Sources & references
Primary references: MDN: Array.prototype.sort().
Last reviewed: