The ordering of crystallographic shear planes: Theory of regular arrays