SmartTechnology solutions for business

Sort a List and Remove Duplicates

Sort the lines of a list alphabetically or numerically, and remove repeated lines or see how often each repeats.

Resulting list

Paste the list. The sorted version appears here.

How to use it

  1. Paste the list with one item on each line.
  2. Choose the sort order and the direction.
  3. Switch on Remove repeated lines if you want one copy of each line.
  4. Copy the resulting list.

Examples

  • NamesOmar, Ali, Sara Ali, Omar, Sara
  • Numbers10, 2, 1 1, 2, 10
  • Repeats removedApple, apple, Pear Apple, Pear
Tool details and privacy

Sort the lines of a list alphabetically or numerically, and remove repeated lines or see how many times each one appears.

Blank lines are dropped, and spaces at the start and end of a line are ignored. Two lines are repeats when they match after that, whatever the case of their English letters.

Options

  • Alphabetical with Arabic first or with English first.
  • Numeric: sorts by value, so 2 comes before 10. Arabic-Indic digits such as ١٢٣ are read as numbers.
  • No sorting: lines keep their order, and the descending direction reverses the list.
  • Remove repeated lines and keep the first one.

Limits

  • Up to 100,000 characters at a time.
  • Hamza and diacritics make lines different: أحمد and احمد are not repeats.
  • In ascending numeric order, lines that are not numbers come after the numbers.

Privacy

The list is sorted in your browser. It is not sent to our server or stored.

Questions

How do I sort a list in alphabetical order?

Paste the items, one per line, and choose Alphabetical, English first. The sorted list appears at once.

How do I remove duplicate lines from a list?

Switch on Remove repeated lines. The first copy of each line stays and later copies are removed. To keep the original order, choose No sorting.

Does it sort numbers by value?

Yes, in numeric mode: 2 comes before 10. In that mode 01 and 1 count as the same number.

Is it case sensitive?

No. Apple and apple count as one repeated line, and the first of them is kept when repeats are removed.

Related tools

All tools