function parsePlaylistSort
parsePlaylistSort(value: string | null): PlaylistSort

Returns the order a ?sort= names, the default one when it is missing or names none: like a page number, an order never fails a list.

Parameters

value: string | null

Return Type

Usage

import { parsePlaylistSort } from "shared/playlist.ts";