Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sort Dictionary based on keys

I need to order a Dictionary in VB.net based off of the keys. The keys and values are all strings. The dictionary does not have a .Sort(). Is there a way to do this without having to write my own sorting algorithm?

like image 239
user489041 Avatar asked Oct 19 '11 17:10

user489041


1 Answers

SortedDictionary comes to mind, but it sorts only on the key.

Otherwise, this answer might help How do you sort a C# dictionary by value?.

like image 115
LarsTech Avatar answered Sep 22 '22 16:09

LarsTech