Sort lines A–Z, Z–A, in natural order so item2 precedes item10, or by the number each line starts with. Ordering rules are documented and stable.
Waiting for lines
Dictionary order using your browser's collator, so accented letters sort beside their base letter rather than after z.
Paste lines to sort
Every line is kept — sorting never drops or merges anything unless you ask it to.
Text Sorter runs entirely on your device — nothing is uploaded.
You’re on the Free plan. Compare plans
Sorting text looks trivial until two lines differ only in case, or a list of versions needs 10 to come after 9. Each mode here has a stated rule rather than inheriting whatever the runtime's default comparison happens to do.
Alphabetical uses a proper collator, so accented letters sort beside their base letter — é next to e — instead of being dumped after z the way a raw character comparison puts them. The collation is pinned to English ordering so that the same list comes back in the same order for everyone; left to the browser's own locale, a Swedish reader and a German reader would get different answers from the same input and neither could tell why.
Natural order compares runs of digits as numbers, so item2 comes before item10. Numeric order reads the number each line begins with; lines that do not start with one are kept and placed after the sorted ones in their original order, because dropping them would lose data and treating them as zero would be a lie. Line length is there for finding the outliers in a list.
Sorting is stable: lines that compare equal keep the order they arrived in. Blank lines are treated as empty strings, so they gather at the top of an ascending sort, and they are never discarded unless you ask. There is nothing semantic here — it sorts characters and numbers, and says so.
Alphabetical compares text character by character, so item10 comes before item2 because 1 precedes 2. Natural order reads runs of digits as numbers, so item2 comes first. Use natural for filenames, version strings and anything with numbers embedded in text.
English collation, pinned deliberately. Collation genuinely differs between languages — in Swedish, ä sorts after z — so leaving it to the browser would mean two people getting different results from the same list with no way to tell why.
By default capitalisation is ignored, so Apple and apple compare equal and keep their original relative order. Turn on case sensitivity and they are distinguished, with uppercase sorting first.
They are kept and placed after the sorted lines, in their original order, and the status line tells you how many there were. Numbers may be negative or decimal, and only the number at the start of the line is read.
They sort as empty strings, which puts them at the top of an ascending sort and the bottom of a descending one. They are never thrown away unless you turn on the option to remove them.
Yes for ascending order: lines that compare equal come out in the order you supplied them. Descending order reverses the whole result, which also reverses the relative order of equal lines.