I have a Dictinary(Of String, Item) and I’m trying to sort it into alphabetical order by the item name. I don’t want to use a sorted dictinary and without it, I’ve having zero luck. Linq is not my strong point…
Public Class Item
Public Property name As String
Public Property size As String
Public Property price As Decimal
Public Property timeMachine As Boolean
End Class
A
Dictionary(Of TKey, TValue)is inherently an unordered type. There is no way to sort one. Try usingSortedDictionary(Of TKey, TValue)instead.