Does the code say anywhere that the main breaker for a panel must be in a certain loacation e.g., the top or bottom?

A contractor installed a main for a subpanel in apx. the middle of the panel. Although odd, is this non-compliant?