GitLogParser.js
authorAlan Knowles <alan@roojs.com>
Wed, 2 Jan 2013 06:24:40 +0000 (14:24 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 2 Jan 2013 06:24:40 +0000 (14:24 +0800)
GitLogParser.js

index 10ea2d6..1cea049 100644 (file)
@@ -228,7 +228,7 @@ for (var h in GitLogParser.shours) {
     for (var desc in GitLogParser.shours[h]) {
         hsum.push({ desc : desc, tot : (GitLogParser.shours[h][desc]/60000).toFixed(2)*1 })
     }
-    hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot > b.tot ? 1 : -1 });
+    hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
     print(h+':');
     hsum.forEach(function(r) {
         print ("  " + r.tot + "   : " + r.desc);