Elective deferrals are governed by contract -- the plan document, and most plan document are really lousy contracts. The appropriate order is determined by thoughtful consideration, another failure. Finally, cheap inflexible payroll systems and providers, by contract, can interfere with thoughtful efforts to achieve a desired goal. Payroll systems and providers are the bane of plan administrators and designers.
Setting aside extraordinary compensation from the conversation, it makes sense to give priority to elected health coverage payments and nonelective health coverage payments will certainly get priority. But the payroll provider should not be the one to decide in an ideal world. And not matter what, the plan document should address sources of contributions as a separate matter from definition of compensation. Try to find a prototype provider that does.