# GroupDescriptor (@salmonui/core/data)

> The GroupDescriptor interface of @salmonui/core/data.

Canonical: https://salmonui.dev/docs/reference/core/data/GroupDescriptor

```ts
import type { GroupDescriptor } from '@salmonui/core/data';
```

Entry index: https://salmonui.dev/docs/reference/core/data (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/data.md).

## Reference

Kind: interface

```ts
interface GroupDescriptor {
    readonly columnId: ColumnId;
    readonly format?: string;
    readonly direction?: 'asc' | 'desc';
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `format` | `readonly format?: string;` | optional | Group-by-format: a number or date format (`N0`, `yMMM`) whose formatted value is the group key. |
| `direction` | `readonly direction?: 'asc' \| 'desc';` | optional | Group order when the sort list has no descriptor for the column. Default `asc`. |
