Sort Lines
Sort lines alphabetically, by length, numerically, or randomly. Optionally remove duplicates.
How to use Sort Lines
-
Paste your lines
Paste or type a list of items in the input box, one item per line.
-
Choose a sort method
Click A→Z or Z→A for alphabetical, Shortest/Longest for length-based sorting, Numeric to sort by number value, or Shuffle to randomise the order.
-
Configure options
Enable case-insensitive sorting if capitalisation should not affect order. Enable Remove duplicates to eliminate repeated lines.
-
Copy the result
Sorted lines appear instantly in the output box. Click Copy to send them to your clipboard.
Sort Lines FAQ
How does alphabetical sorting handle accented characters?
How does numeric sorting work?
What does case-insensitive sorting do?
Can I shuffle and then reshuffle?
Does Remove duplicates work with case-insensitive sorting?
Is my text uploaded or stored?
Background
The Kordu Sort Lines tool gives you six ways to reorder the lines in any block of text. Alphabetical A-Z and Z-A are the most common — they use locale-aware comparison so accented characters sort correctly. Length sorting (shortest first or longest first) is useful for organising keyword lists, URLs, or any data where line length is meaningful. Numeric sorting parses the numeric value at the start of each line and sorts by that, ignoring non-numeric lines to the end. Shuffle randomly reorders lines — click Reshuffle to generate a new random order.
Case-insensitive mode treats uppercase and lowercase as equivalent during comparison, so "Apple" and "apple" sort together. Remove duplicates eliminates repeated lines (after sorting, so you always keep the first alphabetically or first in natural order).
Common uses: sorting word lists, URLs, email addresses, and domain names; alphabetising bibliography entries; randomising quiz answer options; sorting numerical data without a spreadsheet; and organising exported lists.
All processing runs client-side in your browser. Your text is never uploaded, stored, or transmitted to any server.
Related tools
Remove Duplicate Lines
Remove duplicate lines from text instantly. Keeps first occurrence, case-sensitive or insensitive.
Remove Empty Lines
Remove blank lines from text, or collapse multiple blank lines into one. Free online tool.
Add Line Numbers
Add line numbers to text with customisable separator, start number, and zero-padding.
Word Counter
Count words, characters, sentences, and paragraphs with reading time, speaking time, and keyword density.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more — instantly.