ToolCabana

Sort lines alphabetically

Sort lines alphabetically or numerically.

Favorites are saved in this browser. Find them in My favorites.

Sort lines alphabetically

Instant results · processed in your browser
Update results automatically as you type or change settings. Turn off to run manually.Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Type or paste to update the result automatically.

Your result appears here

Type, paste, or use an example. Copy your result when it is ready.

Como usar Sort lines alphabetically

Sort Lines Alphabetically puts each line of your list in A to Z order, or Z to A with Descending order. Sorting is language-aware and ignores case by default. Advanced options add natural ordering so item2 comes before item10, plus trimming line edges and skipping empty lines, and a numeric mode sorts lists of plain numbers by value.

  1. Type or paste your source, or load an example.
  2. Change the basic settings or open Advanced mode to fine-tune the result.
  3. Review and copy or download your result. Pause Live results to run manually. Sources or individual settings above 20,000 characters require an explicit run.

Que admite esta ferramenta

Sort lines alphabetically or numerically.

Numeric sorting
Set this value for your task.
Descending order
Set this value for your task.
Match case
Set this value for your task.
Natural ordering (item2 before item10)
Set this value for your task.
Skip empty lines
Set this value for your task.
Trim line edges before sorting
Set this value for your task.

Límites e procesamento

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

Fonte de exemplo
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.

Preguntas frecuentes

How do I sort lines so item10 comes after item9?

Enable Natural ordering in Advanced mode. Digits inside each line are then compared by numeric value, so item2 sorts before item10 instead of after it. This works for lines that mix text and numbers.

Why does numeric sorting show an error?

Numeric sorting requires every line to be a number written with a dot as the decimal separator. A blank line, a unit or a comma triggers an error naming the line number; enable Skip empty lines or use natural ordering for mixed lines.

Does sorting treat uppercase and lowercase letters the same?

Yes, by default. Lines are compared by base letters, so case and accents do not affect the order. Turn on Match case to let case and accent differences count when two lines otherwise compare as equal.

Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

What are the input limits?

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.