The "Action Sequence" of CFEngine determines the order of operations of your CFEngine definitions. Here is an example:
control: actionsequence = ( packages copy editfiles files links tidy shellcommands )