The order of transformation for frame \(i-1\) to frame \(i\) starts with translation along the \(z_{i-1}\) axis by distance \(d_i\), followed by translation along the \(x_{i-1}\) axis by distance \(a_i\), then rotation by an angle \(\theta_i\) about the \(z_{i-1}\) axis, and finally rotation by an angle \(\alpha_i\) about the \(x_{i-1}\) axis.