sort

sort command for MoonX.

command-line
moonx
wasm
Download zip
Author
Version
0.1.0
License
Apache-2.0
Last updated
18 hours ago
Downloads
1

Dependencies

#sort for moonx

Sort lines of files or stdin:

moonx cli/sort names.txt printf '10\n2\n' | moonx cli/sort -n moonx cli/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