Skip to content

Commit

Permalink
Minor enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtykkyl committed Feb 24, 2016
1 parent aceff43 commit 5d5bed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
var createdA = new Date(commentA.created).getTime();
var createdB = new Date(commentB.created).getTime();
if(sortKey == 'oldest') {
return createdB - createdA <= 0;
return createdB - createdA < 0;
} else {
return createdB - createdA > 0;
}
Expand Down

0 comments on commit 5d5bed4

Please sign in to comment.