appstore: fix popularity sorting
This commit is contained in:
parent
158071f64e
commit
38ac3674fa
@ -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…
x
Reference in New Issue
Block a user