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

x/fae/mod.ts>sort

A functional module for Deno inspired from Ramda.
Latest
variable sort
import { sort } from "https://deno.land/x/fae@v1.1.1/mod.ts";

Returns a copy of the list, sorted according to the comparator function, which should accept two values at a time and return a negative number if the first value is smaller, a positive number if it's larger, and zero if they are equal.

It does not modify the original.

type

Sort