Skip to content
OT

Sort Lines and Remove Duplicates

Free No sign-up Nothing stored

Sort lines A to Z, Z to A or by length, and remove repeated lines.

Output

How to use

  1. 1 Paste your list into the Input box, one item per line.
  2. 2 Choose the order. Numbers sort the natural way, so item 2 comes before item 10. Choose Keep order to only remove duplicates.
  3. 3 Press Sort. The message shows how many duplicates were removed.

Example

Input

banana
apple
banana
item 10
item 2

Output

apple
banana
item 2
item 10

Related tools