uses std::sort() by default