From 11270eb450183b511bab21dd72f008b8e27fa36e Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 27 Nov 2022 16:12:44 +0100 Subject: [PATCH] #Fix 149 --- modules/pegasus-create-char.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/pegasus-create-char.js b/modules/pegasus-create-char.js index 31afc60..8e95644 100644 --- a/modules/pegasus-create-char.js +++ b/modules/pegasus-create-char.js @@ -199,7 +199,7 @@ export class PegasusActorCreate { this.rolePerks.push(perk) } } - this.rolePerks.sort(function (a, b) { if (a.name < b.name) { return -1 } else { return 1 } }) + this.rolePerks.sort(function compare(a, b) { if (a.name < b.name) { return -1 } else { return 1 } }) this.nbPerks--; if (this.nbPerks == 0 || this.rolePerks.length == 0) { this.nbGlobalSpec = 5 @@ -447,6 +447,7 @@ export class PegasusActorCreate { } let formData = this.createFormData("select-race-perks") formData.raceperks = this.racePerks; + formData.raceperks.sort( function compare(a, b) { if (a.name