Click the shapes in the order shown in the thumbnail strip.
Tap the shapes in order. Tap one again to undo it.