sort

    sort command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.1
    License
    Apache-2.0
    Last updated
    13 days ago
    Downloads
    12

    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.

    With no file operand, an interactive terminal receives an EOF waiting prompt; piped, redirected, and explicit - input remain silent.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io