The ordering keyword sets the order of the rules executed in a rule task.
This keyword is used to specify how the rules are ordered and how many rules are executed in a rule task.
Rule task definitions
ruletask ruleTaskName { [ordering = dynamic|sorted|literal;] };
The keyword ordering specifies how the rules are sorted. It takes these values:
dynamic: The rule instances are sorted in the agenda according to the traditional rules presented for the agenda.
sorted: The rules are sorted in decreasing order of static priority.
literal: The rules are listed in the same order as they have been listed in the rule task body.