Sort Lines Z → A
Sort lines alphabetically from Z to A — locale-aware, reverse alphabetical order.
0 characters
0 characters
About Sort Lines Z → A
This tool sorts the lines of your input in reverse alphabetical order (Z to A). It uses locale-aware comparison so accented and non-Latin characters sort correctly. Empty lines are dropped.
When to use it
- Producing a reverse-alphabetical list for presentation or contrast
- Inverting an already-sorted list
- Generating descending tag or name orders
How it works
Lines are split on LF/CRLF, empty lines are filtered out, and the remainder is sorted with localeCompare in reverse. The result is joined back with LF.
Examples
apple banana cherry
cherry banana apple
Frequently asked questions
- Is sorting case-sensitive?
- No. localeCompare treats case as non-distinguishing for ordering, while preserving original case in the output.