function comparePlaylists
comparePlaylists(sort: PlaylistSort): () => number

Returns the comparison that puts playlists in the order sort names, as the API pages them, the newer first on a tie. usePlaylistListSync finds with it where a playlist the socket announces goes in a list.

Parameters

Return Type

() => number

Usage

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