Text tool

Text Sorter

Sort lines A to Z, by length, by number or shuffle.

Free Runs in your browser

About this tool

Text Sorter puts any list in order, one item per line. Sort alphabetically, by line length or by the numbers in each line, or shuffle the lines to pick a random order for names, prizes or questions.

How to use Text Sorter

  1. Paste your list, one item per line.
  2. Choose a sort order.
  3. Copy the sorted list.

Questions people ask

What is natural order?

Natural order sorts numbers inside text by value, so “item 2” comes before “item 10”. Plain alphabetical order puts “item 10” first because 1 comes before 2.

Is the shuffle truly random?

It uses the Fisher-Yates shuffle with your browser’s cryptographic random number generator, so every order is equally likely.

How does numeric sort handle lines without numbers?

It sorts by the first number found in each line. Lines with no number go to the end, in alphabetical order.

More text tools

See all 19 →
Esc