> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Interface: SortBy

> TypeScript SDK reference

[weave](../) / SortBy

SortBy

## Table of contents

### Properties

* [direction](./sortby#direction)
* [field](./sortby#field)

## Properties

### direction

• **direction**: `"asc"` | `"desc"`

Direction

#### Defined in

[generated/traceServerApi.ts:851](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/generated/traceServerApi.ts#L851)

***

### field

• **field**: `string`

Field

#### Defined in

[generated/traceServerApi.ts:849](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/generated/traceServerApi.ts#L849)
