rotateZ() not working as expected

Correction to code in this topic:
rotateZ() not working as expected - #3 by glv

This is the correct order for my example:

rotateY(y);           // Yaw 
rotateX(x);           // Pitch
//rotateY(y);           // Yaw 
rotateZ(z);           // Roll

:)