Sort lines

Sort lines alphabetically, naturally, by length or in reverse, or shuffle them.

Frequently asked questions

What is natural sort?

Sorting that reads numbers inside text as numbers: “file2” comes before “file10”. Plain alphabetical order would put “file10” first because 1 is less than 2.

Does it handle accented letters?

Yes. Alphabetical sorting uses your browser’s language rules, so “é” sorts next to “e” instead of after “z”.

Is shuffle really random?

Yes, it uses a secure random source and the Fisher-Yates shuffle, so every order is equally likely.