what's so difficult about foreach ?

            foreach (var i in dict) {
                var key = i.Key;
                var val = i.Value;
            }

wait a minute, you want to sort a dictionary ?? are you sure dictionary is the data structure you want ?