Skip to content

Commit

Permalink
[minor fix] Logs should sort in chrono order, not reverse chrono
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Oct 20, 2012
1 parent 1955e88 commit c941daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jitsu/commands/logs.js
Expand Up @@ -191,7 +191,7 @@ function putLogs (results, appName, amount, showApp) { //TODO: utilize amount an
logged = 0;

function sort(first, second) {
return new Date(second.timestamp) - new Date(first.timestamp);
return new Date(first.timestamp) - new Date(second.timestamp);
}

results.data.sort(sort).forEach(function (datum) {
Expand Down

0 comments on commit c941daa

Please sign in to comment.