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

# ProviderSortConfig - Go SDK

> ProviderSortConfig type definition

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

The provider sorting strategy (price, throughput, latency)

## Fields

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