sort

Sort lines of text like sort, runnable via moonx

sort
coreutils
text
cli
wasm
moon add bobzhang/sort@0.1.0
Download zip
Author
Version
0.1.0
License
Apache-2.0
Last updated
1 hour ago
Downloads
1

Dependencies

README

#sort for moonx

Sort lines of files or stdin:

moonx bobzhang/sort names.txt printf '10\n2\n' | moonx bobzhang/sort -n moonx bobzhang/sort -t, -k 2 -u data.csv

Options: -r reverse, -n numeric (by leading number of the key), -u unique by key, -f fold case, -k START[,END] sort by a field range (1-based, whole fields), -t CHAR field separator (default: runs of blanks). Like GNU sort, ties on the key fall back to comparing the whole line (the "last-resort" rule), and any remaining ties keep input order; strings compare by UTF-16 code units. With -u, the first line of each equal-key group in sorted order is kept.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io