Text

Line Sorter

Sort, shuffle, dedupe, and manipulate text lines.

How to use it

  1. Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Line Sorter and press Return.
  2. Paste or type your text into Input.
  3. Adjust the Options on the right if you need to. The defaults are listed below.
  4. Press Process, or ⌘↵.
  5. Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.

Options

OptionValuesDefault
OperationOperation to perform on linesSort A-Z, Sort Z-A, Sort by length, Sort numeric, Shuffle, Reverse, Remove duplicates, Remove empty linesSort A-Z
Case sensitiveConsider case when sorting/dedupingOn or offOff
Trim whitespaceRemove leading/trailing whitespace from each lineOn or offOn
Add prefixAdd prefix to each lineText—
Add suffixAdd suffix to each lineText—

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