foreach (string s in fruits.OrderBy(s=>s, StringComparer.OrdinalIgnoreCase ) ) { Console.WriteLine(s); }