aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-01 23:36:06 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-01 23:37:12 +0100
commit9e6ca915c304b08e60f6dfa453475045ef438736 (patch)
treeeba9eb82678aaf1d50b369b968819ed998025ad2 /lib
parent5957bf89411f587d6070afadfd33cbacbc173b45 (diff)
downloadbugzilla-triage-9e6ca915c304b08e60f6dfa453475045ef438736.tar.gz
Fix sorting of the records in generated log. Now generates time sheet!
Diffstat (limited to 'lib')
-rw-r--r--lib/logger.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/logger.js b/lib/logger.js
index faceca2..2b2d228 100644
--- a/lib/logger.js
+++ b/lib/logger.js
@@ -89,7 +89,13 @@ function timeSheetRecordsPrinter(records) {
}
}
tmpArr.sort(function(a, b) {
- return a[0] > b[0] ? 1 : -1;
+ if (a[0] > b[0]) {
+ return 1;
+ } else if (a[0] < b[0]) {
+ return -1;
+ } else {
+ return 0;
+ }
});
var currentDay = "";