This was in the NEC a few versions ago, but removed. It was very common in hospitals, and then got used elsewhere, added to NEC, and then people complained (due to some plugs, like transformer wall warts, not working as well in this orientation). Of course the NEC isn't itself law, it's just an industry standard which is sometimes incorporated into local code (which is law).