Sarkari Resizer
Popular searches
Compress PDFPDF Tools Image CompressorImage Tools Resize ImageImage Tools Age CalculatorCalculators Typing TestTyping Tools Study PlannerStudent Tools

Line Sorter

Sort lines alphabetically, by length, numerically, or shuffle them — instantly in your browser.

Sorted Output A → Z
Sort Mode
Options
Input Lines 0
Sorted Lines 0
Unique Lines 0
Removed 0
Frequently Asked Questions
Common questions about this tool

How is alphabetical sorting done?
Lines are compared using locale-aware comparison (via localeCompare), so accented characters and Unicode text sort naturally. By default it's case-insensitive — "Apple" and "apple" sort next to each other.

What is "Numeric" sort?
Natural number order: lines starting with numbers are sorted by their numeric value, so 1, 2, 10, 20 comes out correctly (not 1, 10, 2, 20 like a plain text sort would).

What does "Ignore A/An/The" do?
For sorting purposes, the leading articles "a", "an", and "the" are ignored. So The Apple sorts under "A" (as if it were "Apple"). The output keeps the full original line.

How does shuffle work?
Lines are randomized using a uniform Fisher-Yates shuffle. Click Reshuffle to get a fresh order. Shuffle uses crypto.getRandomValues if available for better randomness.

Does this tool preserve blank lines?
By default, empty lines are removed. Turn off "Remove empty lines" if you want to keep them (they'll still be sorted to the top/bottom depending on mode).

Is my text uploaded to a server?
No. Everything runs in your browser. Your text never leaves your device.

🔒 Your text stays private

Everything is processed locally in your browser. Your text is not uploaded to our server.

Copied!