Why add the components to the array in zyx order and then reverse it? Can't you just add them in the correct order?