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

# ProviderSortConfig

The provider sorting strategy (price, throughput, latency)

## Fields

| Field       | Type                                                                    | Required             | Description                                                                                                                                                                                | Example |
| ----------- | ----------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| `by`        | [OptionalNullable\[components.By\]](../components/by.mdx)               | :heavy\_minus\_sign: | The provider sorting strategy (price, throughput, latency)                                                                                                                                 | price   |
| `partition` | [OptionalNullable\[components.Partition\]](../components/partition.mdx) | :heavy\_minus\_sign: | Partitioning strategy for sorting: "model" (default) groups endpoints by model before sorting (fallback models remain fallbacks), "none" sorts all endpoints together regardless of model. | model   |
