A Common Model for Optical Ordering of Photoisomerizable Molecules