Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lume/core/searcher.ts>buildSort

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function buildSort
import { buildSort } from "https://deno.land/x/lume@v1.19.0/core/searcher.ts";

Convert a query to sort to a function

example: "title=desc" returns: (a, b) => a.title > b.title

Parameters

sort: string

Returns

(a: Data, b: Data) => number