public static void Main()
int[] myList = new int[]{15, 3, 7, 1, 42, 75, 23 };
int max = myList.Length - 1;
for (int i = 0; i < max; i++)
for (int j = 0; j < nrLeft; j++)
if (myList[j] > myList[j + 1])
myList[j] = myList[j + 1];
for (int i = 0; i < myList.Length; i++)
Console.WriteLine(myList[i]);