CyberCodeLab logo — neon green lab flask with terminal symbolCyberCodeLab

Text Sorter (Sort Lines)

Free online text sorter. Sort lines alphabetically or numerically, ascending or descending, with options to ignore case and remove duplicates. Runs 100% in your browser.

text-sorter.run

What is the difference between alphabetical and numeric sorting?

Alphabetical sorting compares character by character, which puts '10' before '2' because the character 1 comes before 2. Numeric sorting compares values, correctly ordering 2 before 10. Choosing the wrong one is why file lists show item-1, item-10, item-2.

This sorter offers both, ascending or descending, plus case-insensitive comparison and duplicate removal in one pass — covering the four options that handle nearly every list-sorting job.

How to use

  1. 01Paste the lines you want to sort into the input box.
  2. 02Pick the order (A→Z or Z→A) and toggle numeric sort, ignore case or remove duplicates.
  3. 03Click Sort lines.
  4. 04Copy or download the sorted list.

Frequently asked questions

How does numeric sort differ from alphabetical sort?
Alphabetical sort treats '10' as smaller than '2' because it compares character by character. Numeric sort compares the actual values, so 2 comes before 10.
Can I sort and remove duplicates at the same time?
Yes — enable the Remove duplicates option and the sorted output will contain each unique line once.
Is my list uploaded to a server?
No. Sorting runs entirely in your browser using JavaScript.

Related tools