๐ Sort Lines
Sort any list or block of text alphabetically, reverse alphabetically, by line length or numerically. Remove duplicates while sorting. Free, private, no signup.
About Sort Lines
This tool sorts any list of text lines using your chosen sort method. Whether you need alphabetical sorting for a glossary, numerical sorting for a data list, or length-based sorting for readability โ all sorting is instant and runs entirely in your browser.
Sort Methods
- A โ Z โ alphabetical order, standard ascending sort
- Z โ A โ reverse alphabetical, descending sort
- Shortest First โ sorts by line character length, shortest lines at top
- Longest First โ sorts by line character length, longest lines at top
- Numerical โ sorts lines that start with numbers in numeric order
- Remove Duplicates โ removes duplicate lines while sorting
- Case Sensitive โ uppercase letters sort before lowercase when enabled
Frequently Asked Questions
Can I sort numbers correctly?
+Yes. Use the Numerical sort mode for lines that start with numbers. This sorts 2 before 10, unlike alphabetical sorting which would put 10 before 2 because "1" comes before "2" alphabetically.
Can I sort and remove duplicates at the same time?
+Yes. Enable the Remove Duplicates option alongside any sort method. The tool will sort first and then remove any repeated lines from the result.
What is alphabetical sorting used for?
Alphabetical sorting is commonly used for organising lists of names, keywords, inventory items, glossary entries, and any data that needs a consistent order. It is much faster than manually reordering content.
Is the sort stable?
Yes. When two lines compare as equal (for example in a case-insensitive sort), their original relative order is preserved. This means sorting by different criteria in sequence gives predictable results.
Is this tool free?
Yes, completely free with no signup. All sorting happens instantly in your browser with no data sent to any server.