We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a78842 commit d5daacbCopy full SHA for d5daacb
src/lib/index.js
@@ -31,6 +31,7 @@ lib.parseDate = datesModule.parseDate;
31
var searchModule = require('./search');
32
lib.findBin = searchModule.findBin;
33
lib.sorterAsc = searchModule.sorterAsc;
34
+lib.sorterDec = searchModule.sorterDes;
35
lib.distinctVals = searchModule.distinctVals;
36
lib.roundUp = searchModule.roundUp;
37
src/lib/search.js
@@ -56,6 +56,7 @@ function greaterThan(a, b) { return a > b; }
56
function greaterOrEqual(a, b) { return a >= b; }
57
58
exports.sorterAsc = function(a, b) { return a - b; };
59
+exports.sorterDes = function(a, b) { return b - a; };
60
61
/**
62
* find distinct values in an array, lumping together ones that appear to
0 commit comments