Q:

c# dictionary order by key asc empty value at the end

I have a Dictionary<string,string> that contains keys and values.
There is one key which is null/empty.
How can I order the Dictionary by the key alphabetically and add the empty key at the bottom/end? 

A:

You can use SortedDictionary with custom Comparer. And sort it accordingly. 
But like general advise: if the sort does matter to you, dictionary is not usually suitable data structure for handling that kind of requirement. 

