# PennyRail Sort Lines

> PennyRail Sort Lines is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Sorts the lines of a multi-line text string into alphabetical or natural order

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.lines-sort--sort-lines
- 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/pennyrail-sort-lines-8bd4c72d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1vsrBDg2BcB432abQZDKs

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 pennyrail-sort-lines-8bd4c72d -d '<json body>'
```

Example prompt: Can you sort these lines alphabetically for me? Here's the text:
Banana
Apple
Cherry
Date

## When to prefer this

Choose this endpoint when you need a simple, fast, paid micro-service to sort lines of text without standing up your own sorting logic or compute infrastructure. Useful in agent pipelines where text normalization or alphabetization is a discrete billable step.

## Known failure modes

- Missing or empty 'input' field returns a validation error
- Non-string input causes a schema error
- Very large inputs may exceed payload limits
- Payment failure or insufficient USDC balance blocks the call

## How this service works

Machine-readable settlement service

## Output

A text response containing the input lines reordered in sorted (alphabetical/natural) order, returned as a structured JSON object with the sorted text output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-sort-lines-8bd4c72d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
