You can straighten the camera to align with the viewpoint up vector in a 3D workspace only.
When the camera position is close to the viewpoint up vector (within 13 degrees), you can use this function to snap the camera to the appropriate axis.
Tip: The same effect can be achieved by typing 0 at the base of the Tilt window.