Fixed Upgrades not sorting on PP #609
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -791,7 +791,7 @@ CM.Disp.UpdateUpgrades = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CM.Options.SortUpgrades) {
|
if (CM.Options.SortUpgrades) {
|
||||||
arr.sort((a, b) => CM.Disp.colors.indexOf(a.color) - CM.Disp.colors.indexOf(b.color));
|
arr.sort(function (a, b) { return (CM.Disp.colors.indexOf(a.color) > CM.Disp.colors.indexOf(b.color) ? 1 : (CM.Disp.colors.indexOf(a.color) < CM.Disp.colors.indexOf(b.color) ? -1 : (a.pp < b.pp) ? -1 : 0)); });
|
||||||
} else {
|
} else {
|
||||||
arr.sort((a, b) => a.price - b.price);
|
arr.sort((a, b) => a.price - b.price);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user