{"ok":true,"tool":"Line Sorter","operation":"sort-lines","description":"Sort the lines of text ascending or descending.","method":"POST","endpoint":"/api/line-sorter","webUrl":"https://toolhub-5eo.pages.dev/tools/line-sorter","parameters":{"type":"object","properties":{"text":{"type":"string","description":"The input text"},"order":{"type":"string","enum":["asc","desc"],"description":"Sort order (default asc)"},"caseSensitive":{"type":"boolean","description":"Case-sensitive sort (default false)"},"trimLines":{"type":"boolean","description":"Trim each line before sorting (default false)"}},"required":["text"]},"response":{"type":"object","properties":{"result":{"type":"string"},"lineCount":{"type":"number"}}},"example":{"request":{"text":"banana\napple\ncherry","order":"asc"},"response_shape":{"type":"object","properties":{"result":{"type":"string"},"lineCount":{"type":"number"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/line-sorter. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  text (string, required) — The input text\n  order (string, optional, one of: asc|desc) — Sort order (default asc)\n  caseSensitive (boolean, optional) — Case-sensitive sort (default false)\n  trimLines (boolean, optional) — Trim each line before sorting (default false)","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/line-sorter -H \"Content-Type: application/json\" -d '{\"text\":\"banana\\napple\\ncherry\",\"order\":\"asc\"}'"}