natural ordering of cards now includes art idnex

This commit is contained in:
Maxmtg
2014-01-29 06:49:48 +00:00
parent 0730e2d774
commit c1a11dd89a

View File

@@ -184,6 +184,10 @@ public final class PaperCard implements Comparable<IPaperCard>, InventoryItemFro
return nameCmp; return nameCmp;
} }
// TODO compare sets properly // 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());
} }
} }