Rotate the result of a loop around an object
The easiest way to do this is to use the Transform Vector node like so:



Keep in mind that we are only changing the location of the object, so they won't rotate or scale. You could do that too, but it works a bit differently:



Side note: You can think of a matrix as a container for the location, rotation and scale of an object. Combining multiple matrices means to execute these transformations one after the other. Here is small video I made to explain the basics of matrices for artists. Maybe it helps to understand this node tree better.