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.
Size: 0 Characters
Tip: Reverse flips line order without sorting. Random shuffles each time you run sort.
Size: 0 Characters
0
Input lines
0
Output lines
0
Non-empty lines
0
Lines moved at index
Visual Diff Viewer
Line order dashboard (with numeric labels)
Recent sorts
No sorts yet.
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](/en/calculator/word-counter) - [Remove Extra Spaces](/en/calculator/remove-extra-spaces) - [Investment Calculator](/en/calculator/investment-calculator) - [Tools category](/en/category/tools)Other language versions
- [English](/en/calculator/sort-text-lines) - [Español](/es/calculator/sort-text-lines) - [Português](/pt/calculator/sort-text-lines) - [Français](/fr/calculator/sort-text-lines) - [हिन्दी](/hi/calculator/sort-text-lines) - [العربية](/ar/calculator/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.