Merge pull request #3350 from spjspj/master

Allow sort by EDH Power level in Deck Editor
This commit is contained in:
spjspj 2017-05-11 17:54:23 +10:00 committed by GitHub
commit 5514787871
4 changed files with 543 additions and 10 deletions

View file

@ -422,7 +422,8 @@ public class DragCardGrid extends JPanel implements DragCardSource, DragCardTarg
CMC("Converted Mana Cost", new CardViewCostComparator()),
COLOR("Color", new CardViewColorComparator()),
COLOR_IDENTITY("Color Identity", new CardViewColorIdentityComparator()),
RARITY("Rarity", new CardViewRarityComparator());
RARITY("Rarity", new CardViewRarityComparator()),
EDH_POWER_LEVEL("EDH Power Level", new CardViewEDHPowerLevelComparator());
Sort(String text, Comparator<CardView> comparator) {
this.comparator = comparator;