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:
parent
56cfa1f3bb
commit
482e70c5fa
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@
|
||||||
toSort = Array.prototype.slice.call(toSort, 0);
|
toSort = Array.prototype.slice.call(toSort, 0);
|
||||||
if (sortBy === "newest") {
|
if (sortBy === "newest") {
|
||||||
toSort.sort(function(a, b) {
|
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") {
|
else if (sortBy === "popularity") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue