Sort and clean lines

Sorts a list alphabetically, by length or at random, removes repeated and empty lines and trims spaces. Numbers inside lines sort as numbers: item 2 before item 10.

In
lines
Out
lines
Options
Input · lines
Output · lines

Waiting for input

Runs in this tab. The text is not sent anywhere.

Related

Questions

Which copy of a repeated line is kept?

The first one, in its place. With sorting off, the order of the list stays as it was.

How are capital letters handled?

By default "Apple" and "apple" are different lines. Turn on "Ignore case" to treat them as one, both for repeats and for sorting.

↑ ↓ move · Enter open · Esc close