sort hard clauses (footer rules) *before* hard templates