Sort Lines

A→Z, Z→A, numeric, natural or by length. Your text stays on your device.

Paste a list, one item per line, and pick a sort: alphabetical, natural, numeric or by length, in ascending or descending order. You can remove duplicates at the same time.

Sorting happens in your browser. Your list is never sent anywhere or saved.

The 4 sort types

  • Alphabetical: dictionary order for English. Accented words sit in their alphabetical place (“éclair” between “eagle” and “egg”), and capitals are not pushed ahead of lowercase letters, unlike some spreadsheets and code editors.
  • Natural: like alphabetical, but numbers are read as numbers, so “item 2” comes before “item 10”.
  • Numeric: by the first number on each line, with a period as the decimal separator (“2.5”). Lines without a number go to the end, in their original order.
  • Length: shortest to longest, in visible characters.

Two options are available: Ignore case (“a” and “A” are treated as equal and keep their original order) and Remove duplicates (before sorting). Equal lines always keep their original order, and blank lines go to the end.

How to sort a list online

  1. Paste your list into the “Your text” box.
  2. Pick the sort type and the order (Ascending or Descending).
  3. Read the sorted list in the “Result” box, then copy it with “Copy result” or save it with “Download”.

Examples

Alphabetical order with accents and capitals

Text entered

zebra
éclair
Apricot
egg
eagle

Sort: Alphabetical · Order: Ascending

Result

Apricot
eagle
éclair
egg
zebra

“éclair” sits in its alphabetical place between “eagle” and “egg”, rather than at the end of the list.

Natural sort

Text entered

chapter 10
chapter 2
chapter 1

Sort: Natural · Order: Ascending

Result

chapter 1
chapter 2
chapter 10

With alphabetical sort, “chapter 10” would come before “chapter 2”.

Numeric sort, highest first

Text entered

Coffee 2.50
Tea 1.80
Hot chocolate 3
Water (free)

Sort: Numeric · Order: Descending

Result

Hot chocolate 3
Coffee 2.50
Tea 1.80
Water (free)

The line without a number stays at the end, even in descending order.

When sorting lines helps

  • Putting a list of names, cities or products in order.
  • Ordering numbered files or versions correctly with natural sort.
  • Ranking prices, scores or measurements with numeric sort.

Limits

  • Numeric sort does not recognize thousands separators: “1,000” is read as 1. Write “1000” instead.
  • On this English page the decimal separator is a period. On the French page it is a comma.
  • For non-Latin scripts and symbols, the order may differ slightly from one browser to another.
  • Each line is sorted as a whole: words inside a line are not reordered.

Frequently asked questions

Is my list sent to a server?

No. The sorting is done by your browser, on your device. Linotext never receives your list and does not store it anywhere.

What is natural sort?

An alphabetical sort that reads numbers as numbers: “file 2” comes before “file 10”, the way a person would expect.

Why does my spreadsheet sort differently?

Some programs sort by character codes: capitals first, accented letters last. Here the order follows the dictionary of the page’s language.

Can I sort a list and remove duplicates at once?

Yes: tick “Remove duplicates”. The number of duplicates removed is shown below the result.