Correlation between atomic ordering and magnetic properties in binary magnetic alloys