diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-01 23:36:06 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-03-01 23:37:12 +0100 |
commit | 9e6ca915c304b08e60f6dfa453475045ef438736 (patch) | |
tree | eba9eb82678aaf1d50b369b968819ed998025ad2 | |
parent | 5957bf89411f587d6070afadfd33cbacbc173b45 (diff) | |
download | bugzilla-triage-9e6ca915c304b08e60f6dfa453475045ef438736.tar.gz |
Fix sorting of the records in generated log. Now generates time sheet!
-rw-r--r-- | .be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values | 2 | ||||
-rw-r--r-- | lib/logger.js | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values index d174295..db43897 100644 --- a/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values +++ b/.be/27c176c2-26be-4a51-bb71-2aff47c5484b/bugs/c81c6f54-62b8-471f-92b0-d67c5aa23bc1/values @@ -7,7 +7,7 @@ reporter: Matěj Cepl <mcepl@redhat.com> severity: minor -status: open +status: closed summary: Generate time sheet! 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 = ""; |