Merge branch 'revert-72e78226' into 'master'

Revert "Merge branch 'patch-4' into 'master'"

See merge request core-developers/forge!81
This commit is contained in:
Michael Kamensky
2018-01-12 06:48:03 +00:00

View File

@@ -68,7 +68,7 @@ public enum ColumnDef {
new Function<Entry<InventoryItem, Integer>, Comparable<?>>() { new Function<Entry<InventoryItem, Integer>, Comparable<?>>() {
@Override @Override
public Comparable<?> apply(final Entry<InventoryItem, Integer> from) { public Comparable<?> apply(final Entry<InventoryItem, Integer> from) {
return toCollectorPrefix(from.getKey()); return toCollectorPrefix(from.getKey()) + " " + toSortableName(from.getKey().getName());
} }
}, },
new Function<Entry<? extends InventoryItem, Integer>, Object>() { new Function<Entry<? extends InventoryItem, Integer>, Object>() {
@@ -520,7 +520,7 @@ public enum ColumnDef {
//this is a multi-layer sort. coding it in layers to make it easier to manipulate. //this is a multi-layer sort. coding it in layers to make it easier to manipulate.
private static String toCollectorPrefix(final InventoryItem i) { private static String toCollectorPrefix(final InventoryItem i) {
//make sure it's a card. if not, pointless to proceed. //make sure it's a card. if not, pointless to proceed.
return (i instanceof PaperCard ? ((IPaperCard) i).getCollectorIndex() + " ": "") + toSortableName(i.getName()); return i instanceof PaperCard ? toBasicLandsLast(i) : "";
} }
//lands after other cards //lands after other cards