From 043e363300901fd35547139c5f3f9ff8be002253 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 10 Mar 2014 00:22:56 -0700 Subject: [PATCH] sort monthly post archives descending --- public/posts/_month.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/posts/_month.ejs b/public/posts/_month.ejs index 35a0384..d20c083 100644 --- a/public/posts/_month.ejs +++ b/public/posts/_month.ejs @@ -19,7 +19,7 @@ <% posts.sort(function(a, b) { -%> <% var t1 = a.timestamp -%> <% var t2 = b.timestamp -%> -<% return t1 < t2 ? -1 : (t1 > t2 ? 1 : 0) -%> +<% return t1 < t2 ? 1 : (t1 > t2 ? -1 : 0) -%> <% }) -%> <% return posts -%> <% } -%>