Cleanup C++, cardlist sort