Order matters: rotate-then-shear ≠ shear-then-rotate

R = rotate 90°, S = shear. Switch the order and watch the final grid differ.