🧰 TextSuite free text tools

🔃 Sort Lines Alphabetically Online — with Natural Order for Numbers

Sorting a list of names, domains, filenames or version numbers is a constant task. The sort tool orders every line in your workbench, with options that fix the two most common annoyances: numbers inside text, and mixed casing.

Try the sort lines tool →

Natural sort vs plain alphabetical

Plain alphabetical sorting compares strings character by character, so v10 sorts before v2 (because "1" < "2"). Natural sort understands that the digits form numbers, giving v1, v2, v9, v10 — the order humans expect for versions and numbered files.

Next: Case-insensitive sorting

Case-insensitive sorting

Tick "Case-insensitive" to sort Apple, banana, apple as Apple, apple, banana, keeping the original casing and a stable relative order for ties.

Next: Ascending and descending

Ascending and descending

Switch between A → Z and Z → A. A descending sort is the fastest way to find the newest log entry, the highest score or the last ID in a sequence.

Next: Remove duplicates while sorting

Remove duplicates while sorting

Combining sort with dedupe gives you a clean, ordered unique list — the classic "sort -u". The duplicates are removed after sorting so the output is both ordered and unique.

Next: Works for any column

Works for any column

Because the tool operates on whole lines, you can sort any single-column list: keywords, tags, usernames, package names, or lines from a config file.

← All TextSuite guides