diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/logger.js | 8 |
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 = ""; |