using System.Collections.Generic;
public static void Main()
List<KeyValuePair<string, int>> list = new () {
list.OrderBy(x => x.Value).ToList().ForEach(x => Console.WriteLine($"{x.Key} {x.Value}"));
list.Sort((x,y) => ((x.Value > y.Value)?1:0) - ((x.Value < y.Value)?1:0)); list.ForEach(x => Console.WriteLine($"{x.Key} {x.Value}"));