static void Main(string[] args) { Hund[] hunde = new Hund[2]; hunde[0] = new Hund() { Alder = 10, Name = "Bulder" }; hunde[1] = new Hund() { Alder = 5, Name = "Lady" }; Array.Sort(hunde); foreach (var item in hunde) { Console.WriteLine(item.Name); } Console.ReadLine(); }