# Water Monitoring Numeric Row Ordering

> Water Monitoring Numeric Row Ordering 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-11).

Sorts up to 200 water monitoring records (sites, dates, litres, cost) by a chosen numeric field in ascending order.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-water-monitoring-sort?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/water-monitoring-numeric-row-ordering-5fd2ff33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4FcnOE4iyhc7o0zPJNghi

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 water-monitoring-numeric-row-ordering-5fd2ff33 -d '<json body>'
```

Example prompt: Sort these 4 water monitoring records by litres: row-1 site group-a 2026-10-01 10 litres cost 1, row-2 site group-b 2026-10-02 20 litres cost 2, row-3 site group-a 2026-10-03 15 litres cost 3, row-4 site group-b 2026-10-04 30 litres cost 4 — order them from lowest to highest litres consumed.

## When to prefer this

Choose this endpoint when you have up to 200 water monitoring records with site, date, litres, and cost fields and need them sorted numerically by either litres or cost. It is purpose-built for water-sector data with local quality processing, making it ideal for lightweight sorting without needing a general-purpose data platform. Best when data is already typed and structured per the schema.

## Known failure modes

- Missing required fields (row_id, site, date, litres, cost) causes validation error
- Date strings not matching YYYY-MM-DD pattern are rejected
- More than 200 rows submitted exceeds maxItems limit
- Empty rows array (minItems:1 violated) returns error
- Null numeric values for sort field may affect ordering output
- Invalid field enum value (not 'litres' or 'cost') causes rejection

## How this service works

Water monitoring - Numeric row ordering: Numeric row ordering for Water monitoring. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded numeric row ordering deliverable.

## Output

Returns the submitted water monitoring rows reordered numerically by the specified field (litres or cost), preserving all original fields (row_id, site, date, litres, cost) in sorted sequence. Up to 200 rows processed locally with data-quality checks applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "site",
     "date",
     "litres",
     "cost"
    ],
    "properties": {
     "cost": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "site": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "litres": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "cost": 1,
     "date": "2026-10-01",
     "site": "group-a",
     "litres": 10,
     "row_id": "row-1"
    },
    {
     "cost": 2,
     "date": "2026-10-02",
     "site": "group-b",
     "litres": 20,
     "row_id": "row-2"
    },
    {
     "cost": 3,
     "date": "2026-10-03",
     "site": "group-a",
     "litres": 15,
     "row_id": "row-3"
    },
    {
     "cost": 4,
     "date": "2026-10-04",
     "site": "group-b",
     "litres": 30,
     "row_id": "row-4"
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "litres",
    "cost"
   ],
   "type": "string",
   "default": "litres"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/water-monitoring-numeric-row-ordering-5fd2ff33/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)
