clears.in Menu

Sort lines alphabetically

Paste a list: it comes back A to Z, with Flat 2 before Flat 10.

Sorted 5 lines.

Order
Options

What does it do to a real text?

Five lines from a parking list, sorted five ways:

A to Z

Flat 1
flat 2
Flat 2
Flat 10
Garage

Numbers in number order off

Flat 1
Flat 10
flat 2
Flat 2
Garage

By character code

Flat 1
Flat 10
Flat 2
Garage
flat 2

Shortest first

flat 2
Flat 1
Garage
Flat 2
Flat 10

A to Z, Remove repeats

Flat 1
flat 2
Flat 10
Garage

What rules does it follow?

  1. A to Z puts lines in alphabetical order, capitals and small letters together; Z to A puts them in reverse alphabetical order.
The other 7 rules
  1. Numbers in number order (on at the start): a run of digits counts as one number, so 9, 10, 100 come in that order. Off, digits compare one by one, so 10 comes before 2.
  2. A decimal point is not read as one: 2.5 comes before 2.10, because 5 is less than 10.
  3. Lines that compare as equal keep the order they came in.
  4. Shortest first and Longest first count the characters in each line.
  5. By character code puts every capital before every small letter (Z before a): the order of the codes the characters have.
  6. Reverse the order turns the list upside down without sorting it.
  7. Remove repeats keeps one of each line after sorting. Drop empty lines (on at the start) leaves out empty lines.

What do people ask?

How do I sort numbers smallest first?

Keep Numbers in number order on and choose A to Z: 9, 10, 100 come out in that order.

How do I sort in reverse alphabetical order?

Choose Z to A. Reverse the order is different: it only turns your list upside down.

How do I sort and remove duplicates at once?

Tick Remove repeats.