ToolsCrate

Sort Lines Alphabetically

Paste a list to sort it alphabetically or numerically, ascending or descending, in one click.

Everything runs in your browser, so even long lists stay private and the tool works with the network switched off.

How to use

  1. 1Paste your list into the box.
  2. 2Choose ascending or descending.
  3. 3Turn on numeric sorting if the lines start with numbers, so 10 comes after 9 rather than after 1.
  4. 4Copy the sorted list.

Frequently Asked Questions

Why do my numbers sort in the wrong order?

Because alphabetical sorting compares character by character, which puts 10 before 2. Tick 'Sort numbers numerically' to compare the values instead.

How are accented and non-English characters sorted?

Using your browser locale-aware comparison, so accented letters sort next to their base letter rather than at the end, and Indian-language text sorts correctly.

Does case sensitivity change the order?

Yes. With case sensitivity off, apple and Apple sort together. With it on, the comparison follows locale rules where uppercase and lowercase forms of a letter still sort adjacently.

Can I sort and remove duplicates at once?

Run the deduplicate tool first, then paste the result here. Splitting the two steps keeps each option set simple and lets you check the intermediate result.

Can I sort in a language-aware way?

Sorting uses your browser's locale-aware comparison, so accented and Indian-language characters fall in the order that language expects rather than in raw code-point order.

Is the sort stable?

Yes. Lines that compare equal keep the order you gave them in, which matters when you sort a list that is already grouped.