draw spheres in the right order

This is usefull when different colored points overlap, to make it look
better.  There are still problems when a small sphere is mostly inside a
larger sphere, but other than that it looks good