Sort ACLs in order of applicability.