[Feature] Enable sorting for Loadout domain cards (#2004)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run

This commit is contained in:
Iohan R. Trézze 2026-06-16 00:33:58 -03:00 committed by GitHub
parent 96f090bef5
commit 24d83e39ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -411,8 +411,8 @@ export default class DhCharacter extends DhCreature {
get domainCards() {
const domainCards = this.parent.items.filter(x => x.type === 'domainCard');
const loadout = domainCards.filter(x => !x.system.inVault);
const vault = domainCards.filter(x => x.system.inVault);
const loadout = domainCards.filter(x => !x.system.inVault).sort((a, b) => a.sort - b.sort);
const vault = domainCards.filter(x => x.system.inVault).sort((a, b) => a.sort - b.sort);
return {
loadout: loadout,