--- alias: tutorials-sort-rule-sets-assigning search: boost: 2 description: "Assign sort rule sets to steps or resources and understand the main dispatching considerations that affect sorting behavior." --- # Assigning Sort Rule Sets ## Assign a Sort Rule Set to a Step **Sort Rule Sets** can be assigned to a **Step** to control dispatching behavior directly from the Step configuration. - Use the **Material Sort Rule Set** field to control how **Materials** are prioritized in the **Step View**. - Use the **Resource Sort Rule Set** field to control how **Resources** are prioritized when selecting a **Resource** for a **Material**. The configuration is available in the **Step** properties, as described in [[user-guide-create-step]]. ![Screenshot showing the step properties where material and resource sort rule sets can be assigned.](images/sort-rule-set-step-properties.png) ## Assign a Sort Rule Set to a Resource **Sort Rule Sets** that order **Materials** can also be assigned directly to a **Resource** to control the queue order for that specific **Resource**. The configuration is available in **Resource Properties > Additional Information > Material Sort Rule Set**, which can be maintained through [[user-guide-edit-resource]]. ![Screenshot showing the resource properties where a material sort rule set can be assigned.](images/sort-rule-set-resource-properties.png) {% set video_id = '119f34f75d5c93668e81c14ac2a83175' %} {% include-markdown 'includes/cloudflare_stream.md' %} ## Key Takeaways - Choose a **Sort Rule Set** that orders **Resources** when the system needs to sort **Resources** for a given **Material**. - Choose a **Sort Rule Set** that orders **Materials** when the system needs to sort **Materials** for a given **Step** or **Resource**. - Rule priority matters. The first rule has the highest priority. - **Material**-oriented sorting includes an implicit Hot Material priority rule. - **Sort Rule Sets** support both Push and Pull dispatching approaches. - Dispatching Context: - **Resource** scope rules affect `Get Material List For Resource` and `Get Material List for Step`. - **Material** scope rules affect `Get Resource List For Material`. ![Diagram showing the push and pull dispatching contexts supported by sort rule sets.](images/sort-rule-set-dispatching-context.png)