{"ok":true,"result":{"slug":"sort-lines","name":"Sort Lines","summary":"Sort lines alphabetically, naturally (1, 2, 10), by length, or shuffle them, with options to reverse, de-duplicate and drop blank lines.","description":"Sort lines of text A–Z or Z–A, in natural number order, or by length, or shuffle them randomly. Optionally remove duplicates and blank lines as you sort.","method":"POST","endpoint":"/api/v1/tools/sort-lines","plan":"free","mcpName":"sort_lines","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The text, one item per line.","maxLength":200000},"mode":{"type":"string","description":"alphabetical, natural (numbers in order), length, or shuffle (random order, different every call).","default":"alphabetical","enum":["alphabetical","natural","length","shuffle"],"maxLength":200000},"reverse":{"type":"boolean","description":"Reverse the sorted order (Z–A, longest first). Ignored when shuffling.","default":false},"unique":{"type":"boolean","description":"Drop repeated lines, keeping the first.","default":false},"caseSensitive":{"type":"boolean","description":"Distinguish upper and lower case when comparing and de-duplicating.","default":false},"removeBlank":{"type":"boolean","description":"Drop empty and whitespace-only lines.","default":false},"locale":{"type":"string","description":"BCP 47 locale for alphabetical comparison, e.g. en, de, sv.","default":"en","maxLength":35}},"required":["input"]},"example":{"input":"file10.txt\nfile2.txt\nfile1.txt","mode":"natural"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/sort-lines","page":"https://pithlab.com/tools/sort-lines"}}