Skip to content

Commit

Permalink
* Sort posts on the same day in reverse chronological order
Browse files Browse the repository at this point in the history
  • Loading branch information
joehewitt committed Sep 13, 2011
1 parent 7e8fd40 commit f3094ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Blog.js
Expand Up @@ -644,7 +644,7 @@ subclass(Blog, events.EventEmitter, {
return post.date;
});
this.datedPosts.sort(function(a, b) {
return a.date > b.date ? -1 : 1;
return a.date >= b.date ? -1 : 1;
});
this.groupedPosts = groupArray(posts, function(post) {
return post.group;
Expand Down

0 comments on commit f3094ef

Please sign in to comment.