---
title: "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                                                                                                                                                                                      |