Search refinements and sorting rules on the storefront catalog
Key Takeaway
Sorting rules and search refinements are set on categories of the storefront catalog and are inherited down the category tree. A category with no sorting rule of its own uses the rule of the nearest ancestor category that has one, before the root category default.
Search refinements are the filters, such as category, color or price, that shoppers use to narrow a product list. Sorting rules decide the order those products appear in. You set up both in Business Manager on the categories of the storefront catalog. Both start at the root category and are inherited down the category tree, so a few settings can cover a whole site.
How a sorting rule orders products
A sorting rule is an ordered list of attributes, each with an ascending or descending direction. B2C Commerce ranks all products by the first attribute and breaks ties with the second attribute, then the third, and so on.
Products that are still tied on every attribute, or that have null values for them, fall back to search index document order. Merchants can't control search index document order. The order can also change from one release to another.