Sample of sorting a dictionary
Dictionary
dictionary.Add(0,"cat");
dictionary.Add(1,"dog");
dictionary.Add(2,"Tiger");
dictionary.Add(3,"Rat");
//// Sort the dictionary
List
result.Sort(delegate(KeyValuePair
{
return first.Value.CompareTo(second.Value);
});