Sort lines alphabetically

Paste one item per line and choose how to sort: A–Z, natural order, by number, by length, reversed or shuffled.

Sort modes compared

ModeResult for file10, file2, file1
Alphabeticalfile1, file10, file2
Naturalfile1, file2, file10
Numericfile1, file2, file10 (uses the number in each line)
Lengthfile1, file2, file10 (shortest first)

Alphabetical sorting uses English collation, so accented letters sort next to their base letter (é next to e) rather than after z. Numeric sorting reads the first number in each line, including decimals and negatives; lines without a number go last.

Shuffle

Shuffle uses the Fisher–Yates algorithm, so every order is equally likely. Each change re-shuffles the list.

Frequently asked questions

Why does 10 come before 2?
Plain alphabetical sorting compares character by character, and "1" comes before "2". Choose Natural or Numeric to sort numbers by value.
Can I sort Z to A?
Yes, tick Descending.