HandyBench

Sort Lines

Alphabetize, number-sort, reverse or shuffle lines.

How to use the Sort Lines

  1. 1 Paste your list with one item per line.
  2. 2 Pick a sort: A→Z, Z→A, Numeric, Reverse or Shuffle.
  3. 3 Optionally remove duplicates, blank lines or trim whitespace, then copy the result.

Examples

  • Alphabetizing a list of names or keywords.
  • Sorting numbers or randomly shuffling a list for a draw.

Frequently asked questions

How does numeric sorting handle text mixed with numbers?

Numeric sort reads the first number it finds in each line and orders by that value. Lines without a number fall to the bottom, sorted alphabetically among themselves.

Can it sort while ignoring upper and lowercase?

Yes. With "Ignore case" enabled, "Apple" and "apple" sort together instead of all capitalized words coming first.

Does shuffle give a truly random order?

It uses a Fisher–Yates shuffle for an unbiased random order. Click Shuffle again for a fresh arrangement.