# Delx Commerce CSV Sort Rows

> Delx Commerce CSV Sort Rows 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-02).

Sorts the rows of a CSV string by a specified column, optionally in descending order, and returns the sorted CSV with row count.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/csv-sort-rows?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-csv-sort-rows-fa040c4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vprHeAf86oXTu5BGYcyg4

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-csv-sort-rows-fa040c4f -d '<json body>'
```

Example prompt: Sort this CSV by the 'price' column in descending order: 'id,name,price\n3,Widget,9.99\n1,Gadget,24.50\n2,Doohickey,4.75'

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call, no-signup CSV row sort with cryptographic proof of no data retention — ideal for agents handling sensitive tabular data that must not be persisted, or for pipelines that require verifiable, auditable transformations at minimal cost ($0.001 USDC per call).

## Known failure modes

- Malformed or unparseable CSV input returns an error status
- Specified column name not found in CSV headers causes failure
- Input exceeding 8192 character limit is rejected
- Boolean descending field sent as string may cause validation error
- Empty CSV input with no rows returns row_count of 0

## 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 CSV as a string under result.csv, the number of data rows under result.row_count, a status field ('pass'), an operation identifier, and an evidence block confirming no data retention and zero external calls, along with an input SHA-256 hash for verifiability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8192,
   "description": "Text supplied to CSV Sort Rows; used only for this bounded calculation and processed in memory without retention."
  },
  "column": {
   "type": "string",
   "maxLength": 8192,
   "description": "Column supplied to CSV Sort Rows; used only for this bounded calculation and processed in memory without retention."
  },
  "descending": {
   "type": "boolean",
   "description": "Descending supplied to CSV Sort Rows; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "csv": "id,name\n1,Ada\n2,Lin",
   "row_count": 2
  },
  "schema": "delx/util-csv-sort-rows/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "cb69489ce0dceef87b94db612016a08b6e5cea76db3556e85ba7b78b5827e73e",
   "external_calls": 0
  },
  "operation": "data_batch:csv_sort_rows"
 }
}
```

## More

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