Method and device for rotary orientation of objects