std::sort problems