draw spheres in the right order

This is usefull when different colored points overlap, to make it look
better.  There are still problems when two spheres intersect, but other
than that it works well.
Merge remote-tracking branch 'origin/master'