How to sort items contained in STL maps Andy 13 July 2012 C++ / MFC / STL No Comments By definition you cannot sort a std::map by value, since a std::map sorts its elements by key. This posting documents a way to get around this by dumping std::map key-value … Read More...