rtsort
A real-time sort with a live terminal preview.

rtsort is a streaming alternative to the standard sort command. It displays a continuously updated preview of your sorted data as it arrives, then seamlessly writes the final output to stdout.
Features
- Live terminal display updates as each line arrives
- Alphabetical, numeric, and human-readable numeric sort modes
- Case-insensitive sorting
- Reverse ordering
- Limit output to the top or bottom N results
Install
Install with Cargo from crates.io
Download a release binary
Download the archive for your platform from the GitHub Releases page, extract it, and place the rtsort binary somewhere on your PATH.
Install with Cargo from the repository
If your GitHub access uses SSH:
Build from a local clone
Usage
rtsort [OPTIONS]
Options:
-n, --numeric-sort Compare by string numerical value
-h, --human-numeric-sort Compare by human-readable numeric values (e.g. 2K, 1G)
-f, --ignore-case Fold lower case to upper case characters for comparison
-r, --reverse Reverse the sort order
-t, --top <N> Output only the first N lines of the sorted result
--bottom <N> Output only the last N lines of the sorted result
--help Print help
Examples
# Alphabetical sort (default)
|
# Numeric sort
|
# Human-readable numeric sort
|
# Case-insensitive sort
|
# Reverse sort
|
# Show only the top 3 results
|
# Show only the bottom 3 results
|
# Sort directories by size (human-readable)
|
# Find the 5 largest directories
|
Development
To try without installing:
|
|