> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ProviderSortConfig - Python SDK

> ProviderSortConfig method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

The provider sorting strategy (price, throughput, latency)

## Fields

| Field       | Type                                                                   | Required             | Description                                                                                                                                                                                | Example |
| ----------- | ---------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| `by`        | [OptionalNullable\[components.By\]](../components/by.md)               | :heavy\_minus\_sign: | The provider sorting strategy (price, throughput, latency)                                                                                                                                 | price   |
| `partition` | [OptionalNullable\[components.Partition\]](../components/partition.md) | :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   |
