Compares the values of the item at I and I + 1 and sort just the two.

Order of N Square Omega of N