mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-28 01:23:55 -07:00
some zone view changes going on
This commit is contained in:
parent
aed30708de
commit
224a4969bd
25 changed files with 754 additions and 365 deletions
|
|
@ -30,3 +30,17 @@ CardItem *CardList::findCard(const int id, const bool remove, int *position)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
class CardList::compareFunctor {
|
||||
public:
|
||||
inline bool operator()(CardItem *a, CardItem *b) const
|
||||
{
|
||||
return a->getName() < b->getName();
|
||||
}
|
||||
};
|
||||
|
||||
void CardList::sort()
|
||||
{
|
||||
compareFunctor cf;
|
||||
qSort(begin(), end(), cf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue