sort

    sort command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.9
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    199

    #sort

    Sort, merge or check text records through MoonX.

    #Usage

    moonx cli/sort input.txt moonx cli/sort -n numbers.txt moonx cli/sort -t : -k 2,2 -s records.txt

    Use C-locale byte ordering by default. Numeric, general numeric, human, month, version and random orders are available.

    #Common options

    OptionDescription
    -r, --reverseReverse the comparison order.
    -n, --numeric-sortCompare numeric values.
    -s, --stableRetain input order for equal selected keys.
    -o VALUE, --output VALUEWrite named output; - is a literal filename.
    -S VALUE, --buffer-size VALUESorting budget; default 64 MiB; bare numbers use KiB.
    -u, --uniqueKeep one record per equal comparison key.
    -k VALUE, --key VALUESelect the comparison field or range.
    -t VALUE, --field-separator VALUEUse this byte as the field separator.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Sorting uses a default 64 MiB accounted buffer and temporary runs; this is not an RSS limit. Nonzero percentage budgets are unsupported.
    • Merge-only output over existing files can be refused when source/output identity cannot be established. Use a new output path.

    See the compatibility guide for the supported profile.

    Source Files