Sort Lines

Sort lines alphabetically, in reverse, by the number they contain, or by length, or shuffle them with a secure random source.

Runs on your device

Result

Results appear here as you type.

What it does

Alphabetical sorting uses natural ordering, so "item 2" comes before "item 10". Numeric sorting finds the first number on each line, which suits price lists and scores.

How to use it

  1. Paste one item per line.
  2. Choose how to sort.
  3. Copy the result.

Example

The example fills in realistic values and runs the tool. Select Try an example above to see it.

When it helps

  • Alphabetising references.
  • Ranking scores.
  • Randomising quiz question order.

Questions

What happens to lines with no number in numeric mode?

They are placed at the end.

Is shuffle truly random?

It uses a Fisher and Yates shuffle driven by crypto.getRandomValues.

More text & writing tools

See all 20

People also use

Browse all 200 tools