Order—disorder behaviour and tetragonal distortion of chalcopyrite compounds