AES Encryption Explained: How It Works and Why It Matters
Jun 23, 2026
Sort text lines alphabetically, by length, numerically, or using natural sort with ascending/descending order and various options.
Standard lexicographic sorting. Lines are compared character by character. "apple" comes before "banana", and "10" comes before "2" (since "1" < "2").
Human-friendly sorting that handles numbers within text intelligently. "item2" comes before "item10", and "file1.txt" before "file12.txt". This is the default and most useful for mixed content.
Sorts lines by their character count, shortest first. Ties are broken alphabetically. Useful for finding the shortest or longest lines in a block of text.
Parses each line as a number and sorts numerically. Non-numeric lines are treated as 0. Ideal for lists of numbers, prices, or measurements.
Natural sort order (also called human sorting) sorts numbers within strings by their numeric value rather than character-by-character. "img2.jpg" comes before "img10.jpg", unlike alphabetical sorting where "img10" would come first because "1" < "2".
It removes all duplicate lines before sorting, so each line appears only once in the result. Useful when you want a sorted list of unique items from a messy input.
No. All sorting happens entirely in your browser using JavaScript. Your text never leaves your device.
Blog
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026