ktongue's picture
download
raw
308 Bytes
import none from "./none.js";
export default function(series) {
var sums = series.map(sum);
return none(series).sort(function(a, b) { return sums[a] - sums[b]; });
}
export function sum(series) {
var s = 0, i = -1, n = series.length, v;
while (++i < n) if (v = +series[i][1]) s += v;
return s;
}

Xet Storage Details

Size:
308 Bytes
·
Xet hash:
bff7b7ec7d44bb31bc26ed6d3c756daad57c4821f182387ae68a8aa0589f3a33

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.