On the role of mechanical stress in the chemical ordering of nanoalloys