you can use a set to do that. Put the map elements into a set providing a functor to compare the map elements on their value. Use the set now to retrieve the elements in the required order.
On Sat, Jun 18, 2011 at 10:08 AM, nicks <crazy.logic.k...@gmail.com> wrote: > Is it Possible to Sort the stl map on the basis of values though they are > sorted internally on the basis of index ??? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Harshal Choudhary, III Year B.Tech CSE, NIT Surathkal, Karnataka, India. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.