Cubestack

Sort Lines

Free sort lines online — sort text lines alphabetically, by number or length, shuffle and reverse.

Your lines
Sorted · 0 lines

What is the Sort Lines?

A line sorter reorders a list one line at a time. Cubestack sorts A→Z, Z→A, numerically up or down, by line length, in reverse, or shuffles the list randomly.

How to use it

  1. 1

    Paste lines

    Enter one item per line.

  2. 2

    Choose a mode

    Pick alphabetical, numeric, length, reverse or shuffle.

  3. 3

    Copy

    Copy the sorted list.

Features

  • Alphabetical

    Sort A→Z or Z→A with natural language comparison.

  • Numeric

    Order numbers correctly, so 10 comes after 9.

  • By length

    Arrange lines from shortest to longest.

  • Reverse and shuffle

    Flip the order or randomize it.

Popular uses

  • Organize lists

    Alphabetize names, tags or glossary terms.

  • Rank numbers

    Order scores, prices or IDs numerically.

  • Random picks

    Shuffle names for raffles or team assignment.

Frequently asked questions

Why does numeric sort differ from alphabetical?

Alphabetical sort compares characters, so '10' comes before '9'. Numeric sort compares values, giving 9 then 10.

Is the shuffle truly random?

It uses a Fisher–Yates shuffle with the browser's random number generator, giving every order an equal chance.

Does it remove duplicates?

No — use the Remove Duplicate Lines tool for that, then sort.

Related tools