static int wxCALLBACK wxListCompare(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData) { // return 1 if item1 > item2 // return -1 if item1 < item2 // return 0 for identity const GameListItem* iso1 = caller->GetISO(item1); const GameListItem* iso2 = caller->GetISO(item2); return CompareGameListItems(iso1, iso2, sortData); }
int wxCALLBACK wxListCompare(long item1, long item2, long sortData) #endif { // return 1 if item1 > item2 // return -1 if item1 < item2 // return 0 for identity const GameListItem *iso1 = caller->GetISO(item1); const GameListItem *iso2 = caller->GetISO(item2); return CompareGameListItems(iso1, iso2, sortData); }
bool operator < (const GameListItem &one, const GameListItem &other) { return CompareGameListItems(&one, &other) < 0; }