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

x/rambda/index.d.ts>sort

Faster and smaller alternative to Ramda
Latest
function sort
import { sort } from "https://deno.land/x/rambda@9.2.1/index.d.ts";

It returns copy of list sorted by sortFn function, where sortFn needs to return only -1, 0 or 1.

Parameters

sortFn: (a: T, b: T) => number
list: T[]

Parameters

sortFn: (a: T, b: T) => number

Returns

(list: T[]) => T[]