TestTri(new int[]{ 1,2,3,4,5 });
TestTri(new int[]{ 5,1,4,2,3 });
TestTri(new int[]{ 5,1,6,4,2,3 });
static void Afficher(int[] tab)
for (int i = 0; i != tab.Length; ++i)
Console.Write($"{tab[i]} ");
static int PlusGrand(int a, int b) => b.CompareTo(a);
static void TestTri(int[] tab)
Console.Write("Avant : ");
Array.Sort(tab, PlusGrand);
Console.Write("Après : ");