Skip to main content
Module

x/fae/sort.ts>sort

A functional module for Deno inspired from Ramda.
Latest
variable sort
import { sort } from "https://deno.land/x/fae@v1.1.1/sort.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