@aureooms/js-merge-insertion-sort
v7.0.1
Published
sorting code bricks for JavaScript
Downloads
7
Maintainers
Readme
:person_fencing: @aureooms/js-merge-insertion-sort
Ford-Johnson algorithm for JavaScript. See docs. Parent is @aureooms/js-sort.
import { fordjohnson } from "@aureooms/js-merge-insertion-sort" ;
import { binarysearch } from "@aureooms/js-search" ;
import { swap } from "@aureooms/js-array" ;
const fj = fordjohnson( binarysearch ) ;
const sort = (compare, a, i, j) => fj(compare, swap, a, i, j) ;