List Sorter

Sort lines alphabetically or numerically, shuffle them randomly or reverse the order — in your browser.

How to use

  1. Paste your list in the input field — one item per line.
  2. Pick an action: A–Z, Z–A, numeric 0–9 or 9–0, Shuffle or Reverse.
  3. Copy or download the result. Each action always works on the input text, so you can try different orders freely.

About this tool

This tool reorders the lines of any list: alphabetically in both directions, numerically by the number at the start of each line, randomly, or simply back to front. It covers the everyday cases a spreadsheet feels too heavy for — alphabetizing names for an attendance sheet, ranking items by score, shuffling a list of participants for a draw or a presentation order, or flipping a chronological list to show the newest entries first.

Alphabetical sorting uses locale-aware comparison with base sensitivity, which means accented letters sort next to their plain versions — "Ávila" lands with the As, not after Z — and case is ignored, so "banana" and "Banana" sort together. Numeric sorting reads the number at the beginning of each line (integers, decimals with a period or a comma, negatives) and orders by its value, which fixes the classic problem of "10" coming before "2" in an alphabetical sort. Lines that do not start with a number are moved to the end, keeping their relative order.

The shuffle uses the Fisher–Yates algorithm, the standard method that gives every possible ordering the same probability, seeded with the browser's cryptographic random generator when available — so it is genuinely fair for raffles and random assignments, not just "random-looking". Everything runs 100% in your browser: nothing you paste is sent anywhere, and even very long lists reorder instantly.

Frequently asked questions

Why does "10" come before "2" in A–Z?

Because alphabetical sorting compares character by character, and "1" comes before "2" as a character. Use the numeric 0–9 or 9–0 buttons to sort by the actual value of the numbers.

How are accented letters sorted?

Next to their unaccented equivalents. The comparison is locale-aware with base sensitivity, so "água" sorts with the As and uppercase and lowercase are treated as equal.

Is the shuffle fair enough for a raffle?

Yes. It uses the Fisher–Yates algorithm, which makes every ordering equally likely, with cryptographic random numbers when the browser provides them — no position is favored.

What happens to lines without a number in numeric sort?

They are moved to the end of the list, in their original relative order. Only lines that start with a number participate in the numeric ordering.

Does my list leave my browser?

No. Sorting and shuffling run entirely in JavaScript on your device — nothing is transmitted or stored.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.