WebTools

Sort and clean up lines

Sort, drop duplicates and blanks, number or reverse a list.

Sort a list, drop its repeats and blank lines, number it or reverse it. It is the work that otherwise gets done by hand in a text editor, settled here with four checkboxes.

The sort understands accents and numbers properly: “Álex” comes before “Bernard”, and “file10” after “file9”, not before it.

How to use it

  1. Paste the list, one entry per line.
  2. Tick what you want done.
  3. Copy the result.

Frequently asked questions

Why does “file10” come after “file9”?
Because the sort is natural: when it finds numbers inside text it compares them as numbers, not as text. That is nearly always what you want.
Does it drop duplicates that differ only in case?
Only if you tick “ignore case when comparing”. By default “Apple” and “apple” count as different.
Is the original order kept if I do not sort?
Yes. With “leave as is”, the other operations respect the order you pasted.

Related tools