I have an STL map using int key and int value. How do i sort the map from smallest to largest based on it's value without losing the associated key. Then return the keys in that order? ( i want to then push the keys onto a queue).