# Ordering Groups

Policies can be assigned to groups, and are applied in a specific order. Rules written below determine in which order policies are applied to clients.

1.Rule 1 : Static Groups are traversed from the root Static Group (All).

2.Rule 2 : On every level, the Static Groups of that level are traversed first in the order they appear in the tree (this is also called "breadth-first" search).

3.Rule 3 : After all Static Groups at a certain level are accounted for, Dynamic Groups are traversed.

4.Rule 4 : In every Dynamic Group, all its children are traversed in the order that they appear in the list.

5.Rule 5 : At any level of a Dynamic Group, any child will be listed and searched for its children. When there are no more children, the next Dynamic Groups at the parent level are listed (this is also called "depth-first" search).

6.Rule 6 : Traversal ends at a computer.

IMPORTANT The policy is applied to the computer. This means that traversal ends at the computer which you want to apply the policy on. |

Using the rules written above, the order in which policies will be applied on individual computers would be as follows:

PC1: 1.ALL 2.SG1 3.PC1 |
PC2: 1.ALL 2.DG1 3.SG1 4.PC2 |
PC3: 1.ALL 2.SG2 3.SG3 4.PC3 |
PC4: 1.ALL 2.SG2 3.SG3 4.DG4 5.DG5 6.DG6 7.PC4 |