npm.io
1.0.0 • Published 11 years ago

shell-sort

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
1

Shell sort

CommonJS shell sort implementation using Sedgewick's gap sequence

Usage

var shellSort = require('shell-sort');

// Signature

shellSort(array [, compareFunction] [, reverse]);

// Possible usages

shellSort(array);
shellSort(array, compareFunction);
shellSort(array, compareFunction, true);
shellSort(array, undefined, true);

Keywords