(partially working) keyword list

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@230 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-03-22 22:50:01 +00:00
parent e51af9677b
commit 0fbd417057
7 changed files with 193 additions and 40 deletions
+2 -7
View File
@@ -167,13 +167,8 @@ bool CardListBase::compareItems(void* a, void* b) const {
FieldP sort_field = column_fields[sort_by_column];
ValueP va = reinterpret_cast<Card*>(a)->data[sort_field];
ValueP vb = reinterpret_cast<Card*>(b)->data[sort_field];
if (sort_ascending) {
if (!va || !vb) return va < vb; // got to do something, compare pointers
return smart_less( va->toString() , vb->toString() );
} else {
if (!va || !vb) return vb < va;
return smart_less( vb->toString() , va->toString() );
}
if (!va || !vb) return va < vb; // got to do something, compare pointers
return smart_less( va->toString() , vb->toString() );
}
void CardListBase::rebuild() {