By using some sorting technique an array of 8 elements was sorted and the sorting algorithm found the larger number first .The elements of an array in order 2 4 5 7 8 1 3 6 after 4 iteration.