Iterable sorting for JavaScript. See docs.
import {increasing} from '@total-order/primitive';
import {sorted} from '@iterable-iterator/sorted';
sorted(increasing, [3, 1, 2]); // 1 2 3
import {decreasing} from '@total-order/primitive';
import {range} from '@iterable-iterator/range';
sorted(decreasing, range(13)); // 12 11 10 9 8 ...