mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
natural ordering of cards now includes art idnex
This commit is contained in:
@@ -184,6 +184,10 @@ public final class PaperCard implements Comparable<IPaperCard>, InventoryItemFro
|
||||
return nameCmp;
|
||||
}
|
||||
// TODO compare sets properly
|
||||
return this.edition.compareTo(o.getEdition());
|
||||
int setDiff = this.edition.compareTo(o.getEdition());
|
||||
if ( 0 != setDiff )
|
||||
return setDiff;
|
||||
|
||||
return Integer.compare(artIndex, o.getArtIndex());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user