@iterable-iterator/sorted
v1.0.0
Published
Iterable sorting for JavaScript
Downloads
560
Readme
:signal_strength: @iterable-iterator/sorted
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 ...