How is reshaping done?

Assume I have a node with w x h x channel == 2x2x2 with elements [row1column1channel1, row1column2channel1, row2column1channel1, row2column2channel1],[row1column1channel2, row1column2channel2, row2column1channel2, row2column2channel2] (w, h, channel ordering). Now, I am reshaping (flattening) the data to 8x1x1 by using a reshaping node.

How, is the reshaping done (what is the order of the elements)? Is there a possibility to manipulate the order of the elements by using the MPSReshapeNode?