Skip the island and read the website

Text Sorter — Sort Lines A-Z, Z-A, by Length or Reverse

← Paper PortThe Creative Island · Island 10

Any list, sorted — A to Z, Z to A, shortest first, longest first, or flipped.

How to use this tool

  1. Paste your list — blank lines are ignored.
  2. Pick a sort: alphabetical (both ways), by length, numeric-aware, or a simple flip.
  3. Copy the sorted result.

Example

File names like file2, file10, file1: plain A→Z gives file1, file10, file2 — but numeric aware gives file1, file2, file10, the order humans expect. That's why it exists.

The formula

localeCompare with numeric:true — the browser's international-aware comparison, tuned for humans

What the result means

Naive sorting is alphabetical and case-sensitive ('Zebra' before 'apple'); this tool uses the browser's international collation, which ignores case and — in numeric-aware mode — compares embedded numbers as numbers. The result is the order a person would expect, which is usually the point of sorting.

Frequently asked questions

Why is the sort case-insensitive?

Because lists meant for humans read better that way — 'apple, Banana, Mango' instead of 'Banana, apple, Mango'. If you need byte-order sorting, your terminal already does it.

What does 'numeric aware' do exactly?

It compares digit runs inside lines as numbers: version1, version2, version10 in true numeric order instead of version1, version10, version2.

Can I sort CSV or multi-column data?

Not sensibly — this tool sorts whole lines. For spreadsheets, sort in the spreadsheet; this bench is for plain lists.

Is my list private?

Yes — sorting happens entirely in your browser.

More tools from Paper Port

Explore the island world

Comments