Skip to main content

Sort Lines Z To A

Sort pasted lines Z to A instantly in your browser.

Tool workspace

Sorting runs in your browser. Nothing you paste is sent to our servers.

How it works

Paste or type text into the input. The tool splits on line breaks (CRLF, CR, or LF), sorts the lines Z→A, and joins them with LF.

Default sort is case-sensitive Unicode code-unit order (not locale collation)—so lowercase letters sort before uppercase when descending (banana before Apple). Turn on Ignore case to compare with case folded via the browser’s toLowerCase() (Domain tests use UTF-8 mb_strtolower).

Empty lines are kept and sort after non-empty lines when descending (an empty string is less than any text, so it comes last in reverse order). Empty input produces an empty result—no error. Each line’s exact text is preserved aside from reordering.

Results update as you type (light debounce) or when you press Sort. Processing runs entirely in your browser.

Examples

  • apple\nbanana\ncherry → cherry\nbanana\napple
  • alpha\nzeta → zeta\nalpha
  • b\n\na → b, then a, then (empty line last)

Privacy

Privacy: this tool processes text locally in your browser. We do not log or store what you paste. Login is not required.

FAQ

Is my text uploaded to a server?

No. Line sorting runs entirely in your browser. Pasted content is not sent to Nova Engine.

Do I need an account?

No. All published tools work for guests without login.

How are empty lines and case handled?

Empty lines sort last in Z→A order. Sorting is case-sensitive by default; enable Ignore case for case-insensitive order.