using MultiMap

Hi, i am using a MultiMap<int,String>m . Now m has entries like <5,apple>,<5,hello>,<10,world>.
if i iterate using a reverse iterator and print out only the second parameter ,i.e the string ,then the values i get are in order: world,hello,apple.
But i require that if the int values for two or more enteries are same then the corresponding strings be printed in alphabetically increasing order. i.e. world,apple,hello.
So how do i achieve this?
Thanks.
Well, you can use equal_range() to get the range of elements with a key, and iterate through that to print it the way you want. ;)
Topic archived. No new replies allowed.