I call this
我叫这个
bool cmpNAME(const PlayerCard& a, const PlayerCard& b){
return (a.Name < b.Name);//Name is std::string
}
list<PlayerCard> tmp;
//fill tmp
stable_sort(tmp.begin(), tmp.end(), cmpNAME);//error at this line
bool cmpNAME(const Player