Let the mass of each particle be m.
The gravitational P.E of system 1 is given using equation (i) as follows:
The gravitational P.E of system 2 is given using equation (i) as follows:
The gravitational P.E of system 3 is given using equation (i) as follows:
The gravitational P.E of system 4 is given using equation (i) as follows:
All the above equations have the same first two terms. It is the last term in the equations which makes the difference. We can see that the 1st equation has the smallest denominator and the 3rd equation has the greatest denominator. The value of the denominator in the 2nd and 4th equations is the same; it is greater than the 1st equation and smaller than the 3rd equation.
Hence, the rank of the positions according to their gravitational potential energies is 1 > 2 = 4 > 3.