If you want to sort it, that's easy too

foreach(var key in dictionary.Keys.SortBy( ... ) )
{
  var value = dictionary[key];
  // output value however you want.
}