Toolkitties
↕️ Writing

How to Sort (or Reverse) a List of Lines

Alphabetize a list, reverse it, or clean up extra blank lines — all in one tool.

Key takeaways

  • Sort Lines alphabetizes, reverses, or cleans up a list of lines in one click.
  • Useful for alphabetizing a name list, reversing a chronological log, or tidying up a messy list before using it elsewhere.
  • Works alongside [Remove Duplicate Lines](/duplicate-lines) for a fully cleaned-up list.

Sorting a list

Paste your list into Sort Lines, choose A–Z, Z–A, or reverse order, and copy the result.

Frequently asked questions

Does it sort numbers correctly, or alphabetically (so 10 comes before 2)?

Check whether the tool offers a numeric sort option if your list is mostly numbers — a plain alphabetical sort treats "10" and "2" as text, which sorts 10 before 2.

Can I remove blank lines at the same time?

Yes, most versions of this kind of tool include an option to strip empty lines as part of the cleanup.

Keep reading