# GroupDescriptor (@salmonui/data-grid/engine)

> The GroupDescriptor interface of @salmonui/data-grid/engine.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/GroupDescriptor

```ts
import type { GroupDescriptor } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.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`. |
