Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix] Don't sort, api return sorted results
  • Loading branch information
julianduque committed Aug 14, 2013
1 parent ff738e9 commit 14d61f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/jitsu/commands/logs.js
Expand Up @@ -234,11 +234,7 @@ function putLogs (results, appName) {
var logLength = jitsu.config.get('loglength'),
logged = 0;

function sort(first, second) {
return first.time - second.time;
}

results.sort(sort).forEach(printLog);
results.reverse().forEach(printLog);
}

function printLog(datum) {
Expand Down

0 comments on commit 14d61f4

Please sign in to comment.