From 482e70c5fab82d58bc41b6d8540b8127e33de115 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 25 Sep 2023 21:22:09 +0200 Subject: [PATCH] appstore: fix sort by newest --- store/templates/catalog.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/templates/catalog.html b/store/templates/catalog.html index 67a591ee..eade21bf 100644 --- a/store/templates/catalog.html +++ b/store/templates/catalog.html @@ -234,7 +234,7 @@ toSort = Array.prototype.slice.call(toSort, 0); if (sortBy === "newest") { toSort.sort(function(a, b) { - return a.dataset.addedincatalog - b.dataset.addedincatalog ? 1 : -1; + return a.dataset.addedincatalog - b.dataset.addedincatalog; }); } else if (sortBy === "popularity") {