How it works
Alphabetical sorting uses proper language-aware comparison, so accented letters sit next to their plain versions instead of after "z". With natural order on, numbers inside text are compared by value: "Item 2" comes before "Item 10", which a plain character-by-character sort gets wrong.
"By number" looks for the first number in each line — including decimals, negatives and thousands separators like 1,250 — and sorts on that. Lines with no number go to the end. Length sorting counts characters and breaks ties alphabetically.
Shuffle uses your browser's cryptographic random generator for a fair Fisher–Yates shuffle; press regenerate for a new order. All sorting happens on your device.
Frequently asked questions
Why does "Zebra" come before "apple" in some tools?
Simple sorts compare character codes, and every uppercase letter has a lower code than every lowercase one. With "ignore case" on, this tool sorts the way a dictionary does.
Can I sort and remove duplicates at once?
Sort here, then paste the result into the Remove Duplicate Lines tool. Because duplicates are now adjacent, they are also easy to spot by eye.