Integer sort

integer-sort · version 1.0.0 · Numbers & math · free, no key needed

Stable-sort canonical signed base-10 integer strings using BigInt.

Use when you need to: integer sort · sort integer strings · order integers.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "values": [
    "10",
    "-2",
    "10",
    "0"
  ]
}

Response:

{
  "result": {
    "values": [
      "-2",
      "0",
      "10",
      "10"
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "integer-sort",
  "version": "1.0.0",
  "input": {
    "values": [
      "10",
      "-2",
      "10",
      "0"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/integer-sort/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"values":["10","-2","10","0"]}'

The machine-readable contract is at /v1/tools/integer-sort/versions/1.0.0.

CLI

node cli.mjs run integer-sort 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.