Practice ยท 1 of 1
Sort Pairs by Second
Implement by_second(pairs): return a new vector of std::pair<std::string,int> sorted by the int (ascending); ties keep alphabetical order of the string.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Lambda Practice: Custom Keys