Text
Line Sorter
Sort, shuffle, dedupe, and manipulate text lines.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Line Sorter and press Return.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Process, or ⌘↵.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
Options
| Option | Values | Default |
|---|---|---|
| OperationOperation to perform on lines | Sort A-Z, Sort Z-A, Sort by length, Sort numeric, Shuffle, Reverse, Remove duplicates, Remove empty lines | Sort A-Z |
| Case sensitiveConsider case when sorting/deduping | On or off | Off |
| Trim whitespaceRemove leading/trailing whitespace from each line | On or off | On |
| Add prefixAdd prefix to each line | Text | — |
| Add suffixAdd suffix to each line | Text | — |
Example
Real output from Devly, with the default options.
Input
pear apple banana apple cherry banana fig
apple apple banana banana cherry fig pear
From Terminal
With the free command-line tool installed:
Terminal
devly linesort --path input.txt # or pipe text in pbpaste | devly linesort
Quick Switch also finds it by: sort, line, shuffle, unique, dedupe, filter, reverse.
More Text tools
String CaseConvert text between camelCase, snake_case, kebab-case, and moreRegex TesterTest and debug regular expressions with match highlightingRegex LibraryBrowse and copy common regex patternsString DiffCompare two strings and show differencesText StatisticsAnalyze text for word count, character frequency, and readabilityString EscapeEscape and unescape strings for various languages