# getCollator (@salmonui/core/format)

> The getCollator function of @salmonui/core/format: Locale-aware comparer used as the default sortComparer for string columns.

Canonical: https://salmonui.dev/docs/reference/core/format/getCollator

```ts
import { getCollator } from '@salmonui/core/format';
```

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

## Reference

Kind: function

```ts
function getCollator(env: FormatEnvironment): Intl.Collator;
```

Locale-aware comparer used as the default `sortComparer` for string columns.
