Skip to main content

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​

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

interface ListSort

Properties​

direction​

readonly direction: "asc" | "desc";

asc lists the lowest first and desc the highest.

field​

readonly field: string;

The decoded field the list is ordered by.

id​

readonly id: string;

Lowercase letters, digits and hyphens.

label​

readonly label: DefinitionText;

The option's name.

See also​

Source: packages/core/src/layers/definition.ts:554