static void Main(string[] args) { PokemonCard[] pokemonCards = new PokemonCard[] { new PokemonCard("Pikachu", 60, 20), new PokemonCard("Raichu", 90, 120), new PokemonCard("Flareon", 90, 60), new PokemonCard("Parasect", 110, 80) }; foreach (var card in pokemonCards) { Console.WriteLine(card); } Array.Sort(pokemonCards, PokemonCard.SortByAscendingAttackPower()); Array.Sort(pokemonCards, PokemonCard.SortByDescendingHP()); Console.WriteLine("\nSorted by ascending attack power and by descending HP array:"); foreach (var card in pokemonCards) { Console.WriteLine(card); } Console.ReadKey(); }