So, I'm looking for the most efficient way to sort a bunch of pairs<string, float>
by value, because I need to get the 3 highest entries of a high number of pairs.
My natural reaction was to use a sortedList, but apparently it only sorts by key, and I cant use the reversed list solution because I know for a fact that the strings are unique, but the floats might not be.
Any simple and efficient solution I am overlooking?