In terms of physical connectors, I've always referred to this as polarisation. The connector is polarised so that it can only be inserted in one orientation, generally by use of a slot and key.
And the problem it solves is Murphy's Law: https://en.wikipedia.org/wiki/Murphy%27s_law
https://en.wikipedia.org/wiki/Poka-yoke