126.96.36.199 ACE Ordering Rules
ACE ordering rules apply only to ACLs in canonical form (see [MS-DTYP] section 2.4.5), and only when the forest functional level is DS_BEHAVIOR_WIN2003 or above. The following rules are applied, in the following order:
Explicit ACEs come before inherited ACEs.
Deny ACEs come before Allow ACEs.
Regular ACEs come before object ACEs.
Within each group, the ACEs are ordered lexicographically (that is, based on octet string comparison rules).
Rules 3 and 4 above are enforced only when the forest functional level is DS_BEHAVIOR_WIN2003 or above. Otherwise, the order of ACEs within each group defined by rules 1 and 2 is retained as supplied by the user or replication partner.