Paste a list, pick a direction, and it comes back sorted. Sorting is number-aware by default — “item 2” lands before “item 10”, not after — and on the Serbian version of this page the letters č, ć, dž, đ, š and ž fall exactly where the alphabet says they should, which plain ASCII sorting never gets right.
How it works
Sorting uses your language’s collation rules, the same ones dictionaries and phone books follow, rather than raw character codes. Character-code sorting puts all capitals before all lowercase letters and dumps č, š and ž after the entire English alphabet — technically consistent, humanly wrong.
The number-aware option compares digit runs as numbers, so version strings, invoice numbers and file names sort the way people expect: 1, 2, 10, 20 instead of 1, 10, 2, 20. Turn it off only when you need strict character ordering, like comparing against another system’s sorted output.
Case-insensitive mode interleaves “apple” and “Apple” instead of grouping by capitalization. All options combine freely, and the result updates as you type.
Practical examples
A participant list for the notice board
Names pasted from sign-up emails sort into alphabetical order in one click — with Đorđević and Živković at their correct Serbian positions, not exiled to the bottom.
Versioned file names
chapter-1, chapter-10, chapter-2… turns into 1, 2, …, 10 with number-aware sorting on. Turn it off to see exactly how your file manager would misorder them.
Reversing a ranked list
A list sorted by name needs to be read out from the end for a countdown-style announcement. Sort Z→A and copy — no spreadsheet needed.
Preparing a bibliography
References sort alphabetically by first author in seconds. Combine with Remove Duplicate Lines first if the list was merged from several documents.
Frequently asked questions
Where do č, ć, đ, š and ž sort?
On the Serbian version of this page, exactly where the Serbian Latin alphabet defines: č and ć after c, đ after dž, š after s, ž last. Simple code-point sorting would place all of them after z — the most common defect of generic online sorters.
What does number-aware sorting actually change?
Runs of digits are compared by value instead of character by character. “item 2” < “item 10” because 2 < 10; character sorting says “10” < “2” because the character 1 sorts before 2. It matters for anything versioned or numbered.
How are lines with mixed letters and numbers handled?
Text parts sort alphabetically and digit runs numerically within the same comparison — “a2b10” vs “a2b9” compares a=a, 2=2, b=b, then 10 vs 9. This matches how file explorers with natural sorting behave.
Does sorting remove duplicate lines?
No — every line survives, duplicates end up adjacent. That adjacency is useful for spotting them; to actually delete them, use the Remove Duplicate Lines tool before or after.
How does case-insensitive sorting decide between “apple” and “Apple”?
They compare as equal and keep their relative input order (the sort is stable). With the option off, capitalization becomes a tie-breaker per the locale’s rules.
Can I sort by the second word or a specific column?
Not here — this tool sorts whole lines. Column-aware sorting belongs to a CSV tool, which is on the roadmap in the file-tools category.
Do leading spaces affect the order?
Yes — an indented line sorts by its leading whitespace first. Run the list through Remove Extra Spaces with “trim line edges” if indentation is accidental.
How big can the list be?
Around 100 000 lines sorts in about a second; several times that still works. Everything stays in your browser — nothing about your list is transmitted anywhere.
Related tools
Remove Duplicate Lines
Delete repeated lines from any list while keeping the original order — with optional case-insensitive matching.
Text tools
Reverse Text
Flip text character by character — emoji-safe, with an option to reverse each line separately.
Text tools
Remove Extra Spaces
Clean up double spaces, stray tabs, trailing whitespace and blank lines in one pass.
Text tools
Reverse Words
Flip the order of words in each line while keeping every word readable — “one two three” becomes “three two one”.
Text tools
Word Counter
Count words, characters, sentences and paragraphs in any text, with estimated reading time.
Text tools
Text Case Converter
Convert text between UPPERCASE, lowercase, Title Case and Sentence case — with correct handling of č, ć, š, đ, ž.
Text tools