Write matrices to Cube in alphabetical order if creation order doesn't work