What is rule sort order?

Rule sort order is a number that defines the order in which rules are executed in the list of rules.


Example


You have an order #1001


  • Have a product with a tag pre-order
  • Shipping address zip code equals 99524



Case 1: You set rule 1 sort order equals 1 and rule 2 sort order equals 0


NameConditionsTagSort order
Rule 1
  • Orders have a product with a tag pre-order
Preorder1
Rule 2
  • Orders have tag Preorder
  • Shipping address zip code equals 99524
UPS_ANCHORAGE0
With the given sort order, your order #1001 will be tagged Preorder and UPS_ANCHORAGE



Case 2: You set rule 1 sort order equals 0 and rule 2 sort order equals 1



NameConditionsTagSort order
Rule 1
  • Orders have a product with a tag pre-order
Preorder0
Rule 2
  • Orders have tag Preorder
  • Shipping address zip code equals 99524
UPS_ANCHORAGE1
With the given sort order, your order #1001 will be tagged only Preorder because rule 2 will run first and it can't find the tag Preorder in the order #1001