Original Post
Wow, I haven't posted on these boards in...probably 4 years. I used to be andromeda, if anyone remembers me. Anyways, I have an std::map that maps words to the number of times they occur in a block of text. This is fine, but when I output them, I'd kind of like them to be ordered by the number of times they occur, highest to lowest (a.k.a., by the values of the map, not the keys). Is there any easy way to do this? Or do I have to do something like make a std::vector, output all the map elements to that, and then sort it?