order of operations

The two transparent cubes illustrate the results of different nesting orders for a translation and a rotation. Which was rotated then translated, and which was translated, then rotated?
[wrl]