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
Go to Latest
function buildSort
import { buildSort } from "https://deno.land/x/lume@v1.18.2/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