A simple answer to your question is that when you rotate by $90$ degrees (as indicated by the right angle symbol), you swap the $x$ and $y$ coordinates and then negate one or the other, depending on which direction you rotated it. In your case, you had $(-\sqrt{3}, 1)$, which became $(1, -\sqrt{3})$ and then because you rotated into the first quadrant, the final point is $(1, \sqrt{3})$.