From ac9f896a221b404eb81c8c30934236cde45587f7 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Fri, 28 Sep 2018 09:39:02 -0400 Subject: [PATCH] commento.js: reverse sorting algorithm --- frontend/js/commento.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 98b65a7..5b9fbf3 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -588,7 +588,7 @@ } cur.sort(function(a, b) { - return a.score - b.score; + return b.score - a.score; }); var cards = create("div");