All apps/sort

sort

sort

Sort or merge records (lines) of text files.

Runs as sort|macOS, Linux, Windows

Command form

ai-draft · 3 tasks · 19 fields

Sort lines of files or standard input. Check mode, sort algorithms, memory and compression options are not included.

Opens the form; the finished command lands at your prompt, unrun
otty gui sort
Sort linesExample values, fixed in this page — nothing here reaches a terminal
Basic
Input files
file
Reverse order
--reverse
Unique lines only
--unique
Ignore case
--ignore-case
Output file
file
TasksEach one presets the form for one job
Sort lines
filesreverseuniqueignore_caseoutput
Sort numerically
filesnumericreverseuniquekeysepoutput
Sort by column
fileskeysepnumericreverseoutput
ParametersOnly these flags are editable in the form
Input files
Leave empty to read standard input.
path · positional 0 · repeatable
Output file
path
--output-o
Reverse order
boolean
--reverse-r
Numeric sort
boolean
--numeric-sort-n
Human-numeric sort
Understands SI suffixes such as 2K and 1G.
boolean
--human-numeric-sort-h
General numeric sort
boolean
--general-numeric-sort-g
Version sort
boolean
--version-sort-V
Month sort
boolean
--month-sort-M
Random order
boolean
--random-sort-R
Unique lines only
boolean
--unique-u
Ignore case
boolean
--ignore-case-f
Ignore leading blanks
boolean
--ignore-leading-blanks-b
Dictionary order
boolean
--dictionary-order-d
Stable sort
boolean
-s
Merge pre-sorted files
boolean
--merge-m
NUL-terminated records
boolean
--zero-terminated-z
Sort key
Field position such as 2 or 2,2.
string
--key-k
Field separator
A single character.
string
--field-separator-t
Temporary directory
string
--temporary-directory-T
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed sort against its version. A form that does not match your version is not offered.