Sort Lines

Sort lines ascending/descending with optional case sensitivity.

Informational only; verify critical results independently.

How to use

  1. Paste or type lines (one per line) into the input.
  2. Choose ascending (A→Z, 0→9) or descending (Z→A, 9→0).
  3. Turn on case-sensitive if you need 'Apple' and 'apple' ordered separately.
  4. Copy the sorted result; original line order is lost.
  5. Use Unique Lines first if you want to remove duplicates before sorting.
  6. Empty lines are kept and sort with the rest.

Examples

  • Sort 50 email addresses A→Z
  • Sort product codes descending
  • Alphabetize a list of names (case-insensitive)
  • Sort numbers as text: 1, 10, 2 → 1, 10, 2 (not numeric order)
  • Sort lines from a CSV column after pasting one column
  • Order a list of filenames case-sensitively

FAQ

Does it remove duplicates?
No—use the Unique Lines tool first if you want to deduplicate.
How are numbers sorted?
As text (e.g. 10 before 2). For numeric order, use a spreadsheet or sort the numbers as numbers elsewhere.
What about blank lines?
They stay in the list and sort with the others.
Can I sort by a different column?
Paste only the column you want to sort, or use Find & Replace to isolate it first.
Why did order change in an odd way?
Check case-sensitive and ascending/descending. Leading spaces also affect order.
Where is the data sent?
Nowhere. Sorting runs in your browser.

Related guides

Related tools

Last updated: 2025-09-15