Sort lines

Put a list in alphabetical order, sort it by length, reverse it or shuffle it.

0 lines, 0 words

Sort

Done in your browser: your text is never uploaded, and isn’t kept once you close the tab.

Sorting options

Questions

Why does “item 10” come after “item 2”?

With “Numbers by value” ticked (the default), numbers inside lines are compared as numbers, the way people expect. Untick it to compare digit by digit, as many programs do (“item 10” before “item 2”).

Does it sort accented letters correctly?

Yes: “éclair” sorts with the e’s, not after z. The order follows the alphabetical rules your browser uses for your language.

Is the shuffle really random?

Yes: every order is equally likely (the Fisher–Yates shuffle, with your browser’s random numbers). Choose “Shuffle again” for a new order.

Can it remove duplicates while sorting?

Use the duplicate line remover first, then sort the result.

More text tools