List tool · A–Z / Z–A

Sort Lines Alphabetically

Put any list in order — ascending or descending, with case-insensitive and natural-number sorting for numbered items.

0 lines

Sorting is stable and safe

Identical lines keep their relative order. Sorting never deletes or merges anything — pair it with the duplicate remover first if you want unique, ordered output.

Numbers need natural sort

Filenames, versions, and numbered items sort wrong alphabetically (10 before 2). Flip on natural-number sorting and the numbers compare by value.

Descending for rankings

Z→A isn't just backwards — it's how you rank "top 10" lists, latest-first logs, and highest-first scores. Sort descending, take the first N lines.

How to use the line sorter

  1. Paste your list

    One item per line — names, URLs, keywords, filenames.

  2. Pick a direction

    Ascending for A–Z order, descending for rankings and latest-first lists.

  3. Tune the options

    Keep case-insensitive on for human lists; enable natural-number sort for numbered items.

  4. Copy the result

    The sorted list updates live — copy it straight to your spreadsheet, doc, or code.

Sorting uses locale-aware comparison (Intl.Collator) and never modifies your original input.

Frequently asked questions

Related tools

Need a custom tool?

We build calculators and internal tools for businesses — get in touch.

Directory last updated 2 December 2026.

Disclaimer: sorting follows Unicode/locale ordering rules, which can differ from spreadsheet or database ordering for special characters. Verify critical orderings in your target system.