mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
appstore: fix popularity sorting
This commit is contained in:
parent
158071f64e
commit
38ac3674fa
2 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@
|
|||
}
|
||||
else if (sortBy === "popularity") {
|
||||
toSort.sort(function(a, b) {
|
||||
return a.dataset.stars < b.dataset.stars ? 1 : -1;
|
||||
return parseInt(a.dataset.stars) < parseInt(b.dataset.stars) ? 1 : -1;
|
||||
});
|
||||
}
|
||||
else if (sortBy === "") {
|
||||
|
|
|
@ -211,7 +211,7 @@
|
|||
}
|
||||
else if (sortBy === "popularity") {
|
||||
toSort.sort(function(a, b) {
|
||||
return a.dataset.stars < b.dataset.stars ? 1 : -1;
|
||||
return parseInt(a.dataset.stars) < parseInt(b.dataset.stars) ? 1 : -1;
|
||||
});
|
||||
}
|
||||
else if (sortBy === "") {
|
||||
|
|
Loading…
Add table
Reference in a new issue