Skip to content

Commit

Permalink
feat(ui): Sort upgrades in auto-reset UI
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Sep 21, 2024
1 parent 9a8db48 commit 60ec7b0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class ResetUpgradesSettingsUi extends IconSettingsPanel<ResetUpgradeSetti
const itemsList = new SettingsList(this._host, {
children: this._host.game.workshop.upgrades
.filter(item => !isNil(this.setting.upgrades[item.name]))
.sort((a, b) => a.name.localeCompare(b.name))
.map(upgrade => this._getResetOption(this.setting.upgrades[upgrade.name], upgrade.label)),
});
this.addChild(itemsList);
Expand Down

0 comments on commit 60ec7b0

Please sign in to comment.