I'm after some information about sorted dictionaries as I've never used them before in any great detail.
From what I've read about them, they sort themselves by the key value placed in them. Is that correct? Also, does the dictionary continually auto sort itself based on the values being read into it?
If so, is there a way in which I can change this so the dictionary sorts itself via values associated with the keys. For example I have a sorted dictionary with the following:
Key: 4 Value: 40
Key: 1 Value: 290
Key: 86 Value: 7
The sorted dictionary would sort it like so:
Key: 1 Value: 290
Key: 4 Value: 40
Key: 86 Value: 7
But what I would like is for it to do the following:
Key: 86 Value: 7
Key: 4 Value: 40
Key: 1 Value: 290
Finally, how I would go about accessing the first and second points of this sorting so that I could assign them to something else?