# Delx Commerce — Numeric Array Sort

> Delx Commerce — Numeric Array Sort is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Sorts an array of numbers in ascending order and returns the sorted list with a count

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/arr-sort-num?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-numeric-array-sort-3d9eeff9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gizPx_GM-sZvv4XQNpYW5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-numeric-array-sort-3d9eeff9 -d '<json body>'
```

Example prompt: Can you sort this list of numbers for me: [42, 7, 3, 99, 15, 1]?

## When to prefer this

Choose this endpoint when an AI agent needs a simple, trustless, pay-per-call numeric sort with verifiable delivery and no signup overhead — ideal for agents operating autonomously with USDC micropayment rails (x402 on Base or Solana) that need a deterministic utility function without standing up their own sort logic.

## Known failure modes

- Non-numeric values in the array may cause a validation error or unexpected results
- Empty array input may return a count of 0 and an empty items list
- Malformed JSON body returns an error response
- Payment failure via x402 results in a 402 Payment Required response

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the sorted numeric array under the 'items' key, a 'count' of elements, and a schema identifier ('delx/util-arr-sort-num/v1'). Payment is $0.001 USDC per call via x402 on Base or Solana.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "description": "Input field: items."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "items": [
   1,
   2,
   3
  ],
  "schema": "delx/util-arr-sort-num/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-numeric-array-sort-3d9eeff9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
