# PivotValueSort (@salmonui/pivot-table/engine)

> The PivotValueSort interface of @salmonui/pivot-table/engine: Sort row members by the values of one column tuple.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine/PivotValueSort

```ts
import type { PivotValueSort } from '@salmonui/pivot-table/engine';
```

Also exported from `@salmonui/pivot-table`.

Entry index: https://salmonui.dev/docs/reference/pivot-table/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table/engine.md).

## Reference

Kind: interface

```ts
interface PivotValueSort {
    readonly columnKey: string;
    readonly measure: string;
    readonly direction: 'asc' | 'desc';
    readonly multipleAxis?: boolean;
}
```

Sort row members by the values of one column tuple.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `columnKey` | `readonly columnKey: string;` |  | Column leaf key (`PivotHeaderNode.key`) whose values order the rows; `''` = the grand total column. |
| `measure` | `readonly measure: string;` |  | Value field (`PivotValueField` caption-independent name: `field` or calculated field `name`). |
| `direction` | `readonly direction: 'asc' \| 'desc';` |  |  |
| `multipleAxis` | `readonly multipleAxis?: boolean;` | optional | Sort every row level (true) or only the innermost one. |
