card filter: alphabetical ordering for keywords (#2987)
This commit is contained in:
parent
d124e6ac22
commit
e6e6932dbb
2 changed files with 16 additions and 16 deletions
|
@ -20,25 +20,25 @@ const char *CardFilter::attrName(Attr a)
|
|||
{
|
||||
switch (a) {
|
||||
case AttrName:
|
||||
return "name";
|
||||
return "Name";
|
||||
case AttrType:
|
||||
return "type";
|
||||
return "Type";
|
||||
case AttrColor:
|
||||
return "color";
|
||||
return "Color";
|
||||
case AttrText:
|
||||
return "text";
|
||||
return "Text";
|
||||
case AttrSet:
|
||||
return "set";
|
||||
return "Set";
|
||||
case AttrManaCost:
|
||||
return "mana cost";
|
||||
return "Mana Cost";
|
||||
case AttrCmc:
|
||||
return "cmc";
|
||||
return "CMC";
|
||||
case AttrRarity:
|
||||
return "rarity";
|
||||
return "Rarity";
|
||||
case AttrPow:
|
||||
return "power";
|
||||
return "Power";
|
||||
case AttrTough:
|
||||
return "toughness";
|
||||
return "Toughness";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -16,16 +16,16 @@ public:
|
|||
/* if you add an atribute here you also need to
|
||||
* add its string representation in attrName */
|
||||
enum Attr {
|
||||
AttrName = 0,
|
||||
AttrType,
|
||||
AttrCmc = 0,
|
||||
AttrColor,
|
||||
AttrText,
|
||||
AttrSet,
|
||||
AttrManaCost,
|
||||
AttrCmc,
|
||||
AttrRarity,
|
||||
AttrName,
|
||||
AttrPow,
|
||||
AttrRarity,
|
||||
AttrSet,
|
||||
AttrText,
|
||||
AttrTough,
|
||||
AttrType,
|
||||
AttrEnd
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue