> ## 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.

# ProviderPreferencesProviderSortConfig - TypeScript SDK

> ProviderPreferencesProviderSortConfig method reference

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

## Example Usage

```typescript lines theme={null}
import { ProviderPreferencesProviderSortConfig } from "@openrouter/sdk/models";

let value: ProviderPreferencesProviderSortConfig = {};
```

## Fields

| Field       | Type                                                                                             | Required             | Description | Example |
| ----------- | ------------------------------------------------------------------------------------------------ | -------------------- | ----------- | ------- |
| `by`        | [models.ProviderSort](/agent-sdk/typescript/models/providersort)                                 | :heavy\_minus\_sign: | N/A         | price   |
| `partition` | [models.ProviderPreferencesPartition](/agent-sdk/typescript/models/providerpreferencespartition) | :heavy\_minus\_sign: | N/A         |         |
