# StockOrder

Audience: Developer

Ordering options for Stock connections

Ordering options for Stock connections

**Services:** [inventory](https://docs.pyck.cloud/dev/api/services/inventory.md)

## Fields

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `direction` | [OrderDirection](https://docs.pyck.cloud/dev/api/enums/orderdirection.md)! | `ASC` | The ordering direction. |
| `field` | [StockOrderField](https://docs.pyck.cloud/dev/api/enums/stockorderfield.md) |  | The field by which to order Stocks. |
| `jsonPath` | String |  | Dot-notation path into a JSONB column (e.g. "meta.weight"). |
| `jsonType` | [JSONType](https://docs.pyck.cloud/dev/api/enums/jsontype.md) |  | Cast type for the extracted JSONB value. |
