geometry.spheres.
sorted_directions
Rearranges the directions in S in a better order for visualization.
In 2D, sorts the directions using their angle.
In 3D, it tries to do a pleasant elicoidal arrangement with num_around spires.