Illustration of a jumbled list of lines rearranging into alphabetical order

Sort Lines / Unique Lines

Paste text and sort its lines alphabetically, by length, or numerically — live, in either direction. Optionally drop exact duplicates first. Runs entirely in your browser.


💻 Show API usage examples (cURL)
curl -sS -X POST https://devops.majbase.com/sort-lines/api -H "Content-Type: application/json" -d '{"text":"banana\napple\ncherry","order":"alpha"}'

Returns {"result", "line_count"}, or {"error": "..."}.

🤖 Use this API as a Claude Skill

Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:

⬇️ Download SKILL.md · View raw