Skip to content

make-github-pseudonymous-again/js-sorting

Repository files navigation

📶 Sorting License GitHub issues


© xkcd.com

Sorting algorithms for JavaScript. See docs. Parent is js-algorithms.

🏗️ Caveat emptor! This is work in progress. Code may be working. Documentation may be present. Coherence may be. Maybe.

import {isSorted} from '@comparison-sorting/is-sorted';
import {increasing, decreasing} from '@total-order/primitive';
isSorted(increasing, [1, 2, 3], 0, 3); // true
isSorted(decreasing, [1, 2, 3], 0, 3); // false

👶 Children

This package has several children:

⚖️ Comparison sorting

Spec

In-place

Stable

Input oblivious

Subroutines

💤 Integer sorting

🔗 Links