1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

appstore: fix sort by newest

This commit is contained in:
Alexandre Aubin 2023-09-25 21:22:09 +02:00
parent 56cfa1f3bb
commit 482e70c5fa

View file

@ -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") {