Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/searcher.ts>buildSort

🔥 Static site generator for Deno 🦕
Very Popular
Latest
function buildSort
import { buildSort } from "https://deno.land/x/lume@v2.4.1/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