Skip to content

Sort Lines Z–A

Sort a list into reverse alphabetical order.

Quick Tool Overview

Sort Lines Z–A orders a list from Z to A, sorting descending directly rather than sorting ascending and flipping — which matters whenever items tie. It shares the natural number handling and locale-aware comparison of the A–Z sorter.

What it does
Sorts lines into reverse alphabetical order
You give it
A list with one item per line
You get back
The list ordered Z to A
Best for
Version strings, dated filenames and reverse leaderboards
Text Tools Free, unlimited use No sign-up Runs in your browser

About the Sort Lines Z–A

Reverse alphabetical order is not just alphabetical order read backwards — it is a different sort, and getting there by sorting A–Z and then flipping the list gives the wrong answer whenever the sort is not perfectly stable.

This sorts descending directly. It uses the same locale-aware, natural-number comparison as the A–Z sorter, so numbered items order correctly and accented letters land where a reader expects. It is the sort you want when the most recent, the highest-lettered or the last alphabetically is the one that matters — version strings, dated filenames and reverse leaderboards being the common cases.

Key features of the Sort Lines Z–A

Sorts descending directly

Rather than sorting ascending and reversing, which also flips the order of any tied items.

Natural number ordering

Version 10 correctly precedes version 2 in a descending sort, because the digits are read as numbers.

Locale-aware comparison

Accented letters land where a reader expects rather than at the end of the alphabet.

Case and duplicate options

Fold case for a human-readable order and drop repeats in the same operation.

Blank lines removed

Empty lines are dropped rather than collecting at one end of the sorted result.

How to use the Sort Lines Z–A

  1. 1

    Paste your list

    One item per line, in any order.

  2. 2

    Choose the comparison

    Natural ordering handles embedded numbers; strict ordering compares character by character.

  3. 3

    Set case and duplicates

    Ignore case for a human-readable order, and remove duplicates in the same pass if you need to.

  4. 4

    Copy the result

    The descending list is ready to copy or download.

Frequently asked questions

It gives the same result for a simple list, but it sorts descending directly rather than sorting ascending and flipping. That matters for lists with equal keys, where flipping would also reverse the order of the tied items.

Reviews of the Sort Lines Z–A

What people who use the Sort Lines Z–A think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Sort Lines Z–A. It takes half a minute and no account.

Write the first review

More text tools