mirror of
https://github.com/YunoHost/yunodevtools.git
synced 2024-09-03 20:16:19 +02:00
appstore: fix popularity sorting
This commit is contained in:
parent
a79cb310ff
commit
8659c2f089
2 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@
|
||||||
}
|
}
|
||||||
else if (sortBy === "popularity") {
|
else if (sortBy === "popularity") {
|
||||||
toSort.sort(function(a, b) {
|
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 === "") {
|
else if (sortBy === "") {
|
||||||
|
|
|
@ -211,7 +211,7 @@
|
||||||
}
|
}
|
||||||
else if (sortBy === "popularity") {
|
else if (sortBy === "popularity") {
|
||||||
toSort.sort(function(a, b) {
|
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 === "") {
|
else if (sortBy === "") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue