# Inventory Array Sorter

> Inventory Array Sorter is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Sorts a list of numbers in ascending or descending order, optimized for inventory management workflows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/sort-values-inventory?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/inventory-array-sorter-4fb066c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LOMhvTUW7LhkzpiPJ8VoL

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 inventory-array-sorter-4fb066c9 -d '<json body>'
```

Example prompt: Sort these inventory quantities from lowest to highest: [8, 2, 5, 14, 1, 33, 7] — I need them ordered for my restock report.

## When to prefer this

Choose this endpoint when you need a quick, paid, inventory-context-aware numeric sort within an automated agent workflow that already uses the x402 micropayment protocol and the market.datapackvibe.com ecosystem. It is best suited for lightweight sorting tasks within inventory management pipelines where a simple, reliable sort call is needed without standing up custom sorting logic.

## Known failure modes

- Non-numeric values in the array may cause a validation error or unexpected behavior
- Empty array input may return an empty result or error
- Very large arrays may time out or exceed payload limits
- Malformed JSON input will return a 400 bad request error
- Payment failure via x402 protocol will block the request before processing

## How this service works

Inventory Array sorter: Sort a list of numbers or strings. Tailored for inventory workflows.

## Output

Returns a sorted array of numbers arranged in order (ascending by default), ready for use in inventory reports, reorder planning, or further data processing pipelines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "default": [
    8,
    2,
    5
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/inventory-array-sorter-4fb066c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
