Sort Text Lines
R�organisez les listes, noms et lignes de log par ordre alphab�tique, inversez l'ordre ou randomisez sans installer de logiciel.
How to use Sort Text Lines
### Step 1: Paste or load text Use one line per entry (names, tasks, log lines, CSV rows, or bullet lists pasted without bullets). You can load from a file or URL when you need to process longer sources. ### Step 2: Choose a sort mode Pick **A→Z** or **Z→A** for dictionary order, **Reverse** to flip the current line order without sorting, or **Random** to shuffle. Optional **Advanced** settings control case-insensitive comparison, natural numeric order, and whether blank lines are removed before sorting. ### Step 3: Sort and export Click **Sort lines** (or rely on **Auto** while editing). Copy or download the result for spreadsheets, code, or publishing workflows.Why Sort Text Lines helps lists and data prep
Sorted or shuffled line lists are easier to scan, deduplicate, and compare. Alphabetical order supports glossaries and name lists; reverse order helps stack traces and chronological flip views; random order supports fair draws and sampling—without installing desktop software.Line ordering for spreadsheets and pipelines
Use sorted lines as a stable intermediate: paste into Excel or Google Sheets, feed scripts that expect one record per line, or normalize imports before merging with other datasets. Pair with a word counter when you need length checks on the same text.KPI interpretation
- **Input / output lines**: line counts after newline normalization. - **Non-empty lines**: lines with visible characters in the result. - **Lines changed at index**: how many positions differ between input and output for the same length (a simple reordering signal).Related calculators
- [Word Counter](/tools/word-counter) - [Remove Extra Spaces](/tools/remove-extra-spaces) - [Case Converter](/tools/case-converter) - [Loan Calculator](/calculators/loan-calculator) - [Tools category](/category/tools)Other language versions
- [English](/tools/sort-text-lines) - [Español](/es/tools/sort-text-lines) - [Português](/pt/tools/sort-text-lines) - [Français](/fr/tools/sort-text-lines) - [हिन्दी](/hi/tools/sort-text-lines) - [العربية](/ar/tools/sort-text-lines) - [Русский](/ru/tools/sort-text-lines) - [Deutsch](/de/tools/sort-text-lines) - [Italiano](/it/tools/sort-text-lines) - [Türkçe](/tr/tools/sort-text-lines)Questions fr�quentes sur Sort Text Lines
📐 Comment fonctionne le tri ?
Votre texte est divis� sur les sauts de ligne. Les modes alphab�tiques utilisent une comparaison propre � la locale.
🔢 L'ordre al�atoire sera-t-il le m�me � chaque fois ?
Non. Chaque fois que vous appliquez un tri al�atoire, le m�lange est g�n�r� � nouveau.
📉 Que signifie � lignes d�plac�es � l'index � ?
Il compte combien de positions de lignes diff�rent entre l'entr�e et la sortie.
🏦 Puis-je supprimer les lignes vides avant le tri ?
Oui. Ouvrez Options avanc�es et activez � Supprimer d'abord les lignes vides �.
📊 L'ordre num�rique naturel g�re-t-il les nombres dans le texte ?
Quand activ�, les comparaisons utilisent un classement num�riquement conscient.
🌍 Mon texte est-il t�l�charg� vers un serveur ?
Le tri s'ex�cute dans votre navigateur.