Cert++
Close

Building a sorting rule: attributes, direction and text relevancy

Key Takeaway

Attribute order is priority order. The first attribute sorts every product, and each later attribute only breaks ties. Products with no value for a sort attribute go last, whichever direction you choose.

A sorting rule controls the order in which products appear in storefront search results and on category pages, so merchants can bring chosen products to the top. You build a rule in Business Manager as an ordered list of attributes. For each attribute, you pick a sort direction and, where it applies, whether to combine it with text relevancy.

How to create a sorting rule

You create a sorting rule in Business Manager, on a page with three sections: "Sorting Rules", "Attributes", and "Preview".

  1. Go to site > Merchant Tools > Search > Sorting Rules and click "New".
  2. Enter a unique rule ID and a description. The description is the name you see when you pick sorting rules for categories and storefront options.
  3. Choose the rule's context: site-specific or global.
  4. In the Attributes section, click "Add" to add an attribute. Repeat for each attribute the rule needs.
  5. For each attribute, set the "Direction" column and, where it applies, the "Text Relevancy" column.
  6. Click "Apply" to save the rule, or click "Cancel" to revert to the last saved value.
  7. In the Preview section, select a category, enter a search term, and click "Preview" to see the sorted results before you use the rule on the storefront.
B2C Commerce Developer Study Guide

Checklist progress

0/237Learned

Given a business requirement, create and configure a new search refinement and sorting definition that can be used on the storefront

0/9

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other B2C Commerce Developer studiers. 796 members and growing.