Sort lines alphabetically
Paste a list: it comes back A to Z, with Flat 2 before Flat 10.
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?
- 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
- 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.
- A decimal point is not read as one: 2.5 comes before 2.10, because 5 is less than 10.
- Lines that compare as equal keep the order they came in.
- Shortest first and Longest first count the characters in each line.
- By character code puts every capital before every small letter (Z before a): the order of the codes the characters have.
- Reverse the order turns the list upside down without sorting it.
- 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.