# Delx Array Sort Num

> Delx Array Sort Num is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Sorts a list of numbers in ascending order and returns the sorted array along with its count.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/arr-sort-num
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-array-sort-num-9b52e7fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V1B1DyETZ7PWam_3PbMMk

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-array-sort-num-9b52e7fa -d '<json body>'
```

Example prompt: Can you sort these numbers for me: [42, 7, 100, 3, 55, 18]? I need them in numerical order.

## When to prefer this

Use this endpoint when your agent holds a list of numbers that need to be sorted and you want a stateless, no-retention, local computation with a predictable $0.001 USDC cost. Prefer this over rolling your own sort logic when you need a reliable, consistent API-based sort without storing data externally. Best for scores, prices, weights, or any numeric array that needs ordering.

## Known failure modes

- Non-numeric values in the items array may cause an error or unexpected sorting behavior
- Empty array input may return an empty result or error
- Malformed JSON body returns a 400-level error
- Missing items field in the request body returns a validation error

## How this service works

Sort a list numerically. Call when you order agent-held scores or prices. Returns sorted numbers and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the input numbers sorted in ascending numerical order and a count of how many items were in the list.

## 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-array-sort-num-9b52e7fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
