Turn each object a quarter turn in place
Turn every selected object a quarter turn about its own centre, so each stays where it is, with Rotate Each Left 90° or Right 90°.
How-toBeginner2 minMenu: Modify › Rotate Each Right 90°
Use Rotate Each when several objects should each turn a quarter, and each should stay where it is. If you use Rotate 90° on the same selection instead, the whole group turns about one point and the objects swing round to new places.
Steps
Select the objects to turn. Here, three rectangles: choose Edit › Select All to take everything in the drawing.

Choose Modify › Rotate Each Right 90°. To turn the other way, choose Rotate Each Left 90°.

Each object turns a quarter about the centre of its own bounds. The orange rectangle is now upright, the teal one lies flat, and the yellow one stands up. None has moved from its place on the drawing.

Tips
- The command takes one undo step, so one ⌘Z turns them all back.
- To turn a selection as one piece, use Rotate about a point, which lets you choose the point the selection turns about.