Sort Lines
Sort lines alphabetically, by length, numerically, or randomly. Reverse order supported.
Sort lines of text alphabetically (with optional locale-aware comparison), numerically (handles negative numbers and decimals), or by line length — ascending or descending. Useful for ordering a long list of names, tidying a config file for diffing, or arranging URLs before a bulk import. Shuffle mode is also there for randomising a queue. The sort runs as a single Array.sort in your tab, so even big lists stay private to the browser.
Next steps
Remove Duplicates
RecommendedClean up lists by removing duplicate lines — keeps original order.
Find & Replace
RecommendedFind and replace across text with regex support and live preview.
Text Cleaner
Fix messy text in one click — remove extra spaces, normalize quotes.
Case Converter
Switch text between uppercase, lowercase, title case, and more.
How Sort Lines Orders Text
Common Use Cases
Filename ordering
Use natural sort so 'screenshot-2.png' comes before 'screenshot-10.png' instead of after, matching Finder and Explorer behavior.
Version list sorting
Sort semver tags like v1.10.0 and v1.9.0 with natural sort so 1.10 comes after 1.9 rather than before.
CSV column sort
Pick a delimiter and column index to sort comma- or tab-separated rows by a non-first field without opening a spreadsheet.
Log line ordering
Sort log dump lines numerically by timestamp prefix or alphabetically by severity to consolidate scattered entries.
Frequently Asked Questions
Advertisement