Skip to content
Browse files

* Sort posts on the same day in reverse chronological order

  • Loading branch information...
1 parent 7e8fd40 commit f3094ef6f8a789045a196eb5900f77a643b1c9b2 @joehewitt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Blog.js
View
2 lib/Blog.js
@@ -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;

0 comments on commit f3094ef

Please sign in to comment.
Something went wrong with that request. Please try again.