macOS / binaries /

sort

/usr/bin/sort
Sort or merge records (lines) of text and binary files

The sort utility sorts text and binary files by lines. A line is a record separated from the subsequent record by a newline (default) or NUL character.

source: man