# ListSort

A sort option for the list of loaded features.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { ListSort } from "@mapcairn/core";
 
interface ListSort
```

## Properties

### direction

```ts
readonly direction: "asc" | "desc";
```

`asc` lists the lowest first and `desc` the highest.

### field

```ts
readonly field: string;
```

The decoded field the list is ordered by.

### id

```ts
readonly id: string;
```

Lowercase letters, digits and hyphens.

### label

```ts
readonly label: DefinitionText;
```

The option's name.

## See also

- [`DefinitionText`](https://docs.mapcairn.com/api/core/DefinitionText.md)

Source: [packages/core/src/layers/definition.ts:554](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L554)
