1 //排序 2 List<string> list = new List<string>() { "B", "A", "E" }; 3 list.Sort(); 4 foreach (string s in list) 5 { 6 Console.WriteLine(s); 7 } 8 Console.ReadLine();