From: Alan Knowles Date: Mon, 3 Apr 2017 04:40:55 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=d309baaa7294bb043b4c7efb70d16d970469a335 GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index d267a828..70a41f62 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -308,10 +308,7 @@ for (var h in GitLogParser.shours) { } print("\n\n" + h+': Totals (' + htot +')'); -var hsum = []; -for (var desc in totals) { - hsum.push({ desc : desc, tot : totals[desc] }); -} + unknown.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 }); print("\n\nUnclassified"); unknown.forEach(function(r) {