I need to sort a std::map by value, then by key. The map contains data like the following:
std::map
1 realistically 8 really 4 rea
You can use std::set instead of std::map.
std::set
You can store both key and value in std::pair and the type of container will look like this:
std::pair
std::set< std::pair > items;
std::set will sort it's values both by original keys and values that were stored in std::map.