Skip to main content
Module

x/structurae/index.ts>SortedArray#sort

Data structures for high-performance JavaScript applications.
Latest
method SortedArray.prototype.sort
import { SortedArray } from "https://deno.land/x/structurae@4.0.1/index.ts";

Sorts the array with a provided compare function.

Parameters

optional
compareFunction: Comparator<ItemType> = [UNSUPPORTED]

the function to use for comparison