The answers to your previous question gave you everything you need along with a link to the docs. The main thing you have to supply is a less than comparison function/functor/lambda that works with the data you have in the map.
At the site linked to previously you can find examples :
std::map - cppreference.com[
^].
I highly recommend that you learn how to effectively use search engines. They can be much faster and more efficient than posting questions on a message board.