> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sort decisions

> Rank a list of items by a criterion.

Use Sort to rank a list of items by a criterion. `content` must be a list with **2–120 items** (see [Limits](/decision-model/limits)).

## Request

```json theme={null}
{
  "content": {
    "kind": "list",
    "value": [
      {"id": "typo", "content": "Spelling mistake on the FAQ page."},
      {"id": "db_down", "content": "Primary production database is unreachable."},
      {"id": "pricing", "content": "Prospect asking about Enterprise pricing."}
    ]
  },
  "question": {
    "id": "triage",
    "kind": "sort",
    "instructions": "Sort by operational urgency, most urgent first."
  }
}
```

## Response

```json theme={null}
{
  "id": "triage",
  "kind": "sort",
  "result": { "sorted": ["db_down", "pricing", "typo"], "confidence": 0.92 },
  "meta": { "model": "levanto-sage-v0.5", "latency_ms": 312.0 }
}
```

## Confidence

On the production default path, the result carries a calibrated, list-level `confidence` in `[0,1]` — how trustworthy the **whole order**.

The sort request is minimal — just `instructions` and the item list. Scoring strategy and ranking are chosen by the server, not the request: `SortQuestion` accepts only `kind`, `id`, `instructions` (any other field is rejected).
