Sorting an Array of Integers
pThe picture shows an array of six integers that we want to sort from smallest to largest
[0]       [1]        [2]       [3]        [4]       [5] 
The picture shows a graphical representation of an array which we will sort so that the smallest element ends up at the front, and the other elements increase to the largest at the end. The bar graph indicates the values which are in the array before sorting--for example the first element of the array contains the integer 45.