I have a dictionary in the form of:
{ "honda" : 4, "toyota": 7, "ford" : 3, "chevy": 10 }
I want to sort it by the second column aka (the value) descending.
Desired output:
"chevy", 10
"toyota", 7
"honda", 4
"ford", 3
Thanks to caryden from: How do you sort a dictionary by value?
Dim sortedDict = (From entry In dict Order By entry.Value Descending Select entry)
The issues reported above were due to improper looping.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With