← @mortar-kit/core

SortOrderinterface

import { SortOrder } from '@mortar-kit/core'

interface SortOrder<K extends string = string>

A list order: by a field of the collection or by slug.

Properties

field: K | "slug"
order?: "asc" | "desc"

Default 'asc'.