# Delx Commerce — Array String Sort

> Delx Commerce — Array String 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 strings alphabetically and returns the sorted list with a count

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/arr-sort-str?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-array-string-sort-519b4b90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bjb3rzxvzVb8sxEg-3qg0

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-array-string-sort-519b4b90 -d '<json body>'
```

Example prompt: Sort this list of strings alphabetically for me: ['banana', 'apple', 'cherry', 'date'].

## When to prefer this

Choose this endpoint when you need a simple, deterministic, pay-per-use string sort with no signup and verifiable delivery via x402/USDC. It is ideal for agents that need on-demand utility computation without managing infrastructure or API keys, and when auditability of payment and delivery matters.

## Known failure modes

- Invalid or missing 'items' field returns an error
- Non-string elements in the array may cause unexpected behavior or rejection
- Empty array may return a zero-count result
- Payment failure via x402 protocol prevents execution
- Malformed JSON body returns a parsing error

## 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 count of items, the sorted array of strings in ascending alphabetical order, and a schema identifier string ('delx/util-arr-sort-str/v1') for verification.

## 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": [
   "a",
   "b",
   "c"
  ],
  "schema": "delx/util-arr-sort-str/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-array-string-sort-519b4b90/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)
