std::sort instead of sort