YL
YoussefLabs

Sort Lines

Text Utilities

Sort text line by line, A to Z or Z to A, or by the number at the start of each line, in your browser.

Local browser processing0 network transfers
Loading tool workspace...

Key Capabilities

Four Sort Orders

A to Z, Z to A, numeric smallest first, and numeric largest first.

Locale-Aware Text Order

Uses your browser's collation, so accented and non-Latin letters sort sensibly, not by raw character codes.

Stable and Non-Destructive

Equal lines keep their order and duplicates are kept. Only empty lines can be removed, if you ask.

Private by Design

Everything is computed in your browser. Your list is never uploaded or stored.

100% Client-Side Processing

When you use Sort Lines, your data never leaves your browser. All transformations execute in-memory on your local machine with zero server uploads. Web assets are downloaded to run the tool, but your input data is never transmitted.

Frequently Asked Questions

Is my text sent to a server?

No. The lines are sorted in your browser. Nothing is uploaded or stored. The page does download the code needed to run the tool.

How does numeric sorting work?

Each line is sorted by the number at its start (for example "10 apples" sorts as 10). Lines that do not start with a number go last, in their original order. Thousands separators are not supported.

What does case sensitive mean here?

Off (the default): Apple and apple are equal and keep their original order. On: they are different, with lowercase before uppercase of the same letter.

Does it remove duplicate lines?

No. Duplicates are kept and end up next to each other. Use Remove Duplicate Lines if you want them removed.