diff --git a/src/npc/startingGirls/startingGirls.js b/src/npc/startingGirls/startingGirls.js index 4e470e053db33f535a3729bc95bf17cb10162bf7..4e0eea00ad7bf7b4a58783ff753ff7e7f03565b6 100644 --- a/src/npc/startingGirls/startingGirls.js +++ b/src/npc/startingGirls/startingGirls.js @@ -1986,7 +1986,7 @@ App.StartingGirls.finalize = function(slave) { App.StartingGirls.stats = function(slave) { const el = new DocumentFragment(); const options = new App.UI.OptionsGroup(); - const counters = new App.Entity.SlaveActionsCountersState(); + const counters = Object.keys(new App.Entity.SlaveActionsCountersState()).sort((a, b) => a.toLowerCase() > b.toLowerCase()); const titles = new Map([ ["birthsTotal", "Total births"], ["laborCount", "Labor count"], @@ -2001,7 +2001,7 @@ App.StartingGirls.stats = function(slave) { ["bestiality", "Bestiality"] ]); options.addOption("Set all counters to 0", "counter", slave).customButton("Reset", () => slave.counter = new App.Entity.SlaveActionsCountersState(), passage()); - for (const key of Object.keys(counters)) { + for (const key of counters) { const title = titles.get(key) || capFirstChar(key); options.addOption(title, key, slave.counter) .addValue("None", 0).off().showTextBox();