---
schema_version: "1"
id: 6d3b8c16fbcf6215d12712ea88240d7827c233b0a4d4b3b8b47e3c6e17dbf09a
title: Storefront Sorting Options
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_storefront_sorting_options.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_storefront_sorting_options.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5fe95e05ec99c10bcee1df9bd4334e154d797e31a9c99c605ab4b2c195db79a6
description: A storefront sorting option allows customers to sort search results already returned by a category or keyword search. Any storefront sorting options you configure in B2C Commerce appear in the Sort By dropdown list at the top of search results. All storefront sorting options are available site-wide.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Storefront Sorting Options

A storefront sorting option allows customers to sort search results already returned by a category or keyword search. Any storefront sorting options you configure in B2C Commerce appear in the Sort By dropdown list at the top of search results. All storefront sorting options are available site-wide.

Any time a customer sees a list of products, there’s a default sorting rule applied that sorts the results. However, add sorting options for the customer, such as sorting by price, size, or brand, beyond the sorting rule applied when the search results are first shown. Use the default storefront sorting options provided in the SiteGenesis application or create your own sorting rules and use them as storefront sorting options. There’s only one list of storefront sorting rules for your entire storefront, so any sorting rules you select as sorting options apply to all product categories.

Create up to 100 sorting options.

## Storefront Sorting Options in SiteGenesis

B2C Commerce provides the following default sorting options:

- Best Matches
- Price High to Low
- Price Low to High
- Product Name Ascending
- Product Name Descending
- Brand
- Most Popular
- Top Sellers

To see these options, perform a search in the SiteGenesis application or navigate to any page that shows products. At the top of the product grid, you see the Sort By list. This list shows the sorting rules selected as storefront sorting options.

Storefront options are implemented as a module in SiteGenesis.

The `util/module.isml` template defines the `search/components/productsortingoptions.isml` template as a module. The `search/components/productsortingoptions.isml` template defines how storefront sorting options are retrieved from Business Manager.

The `rendering/categoryproducthits.isml` template implements the `isproductsortingoptions` model.

- **[Create Storefront Sorting Options](https://help.salesforce.com/s/articleView?id=cc.b2c_storefront_sorting_options.htm&release=264.0.0&type=5)**  
    B2C Commerce storefront sorting options are sorting rules that customers can apply to their search results. For example, if they want to reorder search results in terms of price, brand name, or release date.

## Create Storefront Sorting Options

B2C Commerce storefront sorting options are sorting rules that customers can apply to their search results. For example, if they want to reorder search results in terms of price, brand name, or release date.

1. Click App Launcher ![App Launcher](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/cc/b2c_merchandiser_administrator/images/appLauncher.png), and then go to **site** | **Merchant Tools** | **Search** | **Storefront Sorting Options**.
2. On the Storefront Sorting Options page, select the language for a site and click **Apply**.
    
    When you select a new language to configure, the values for the Display Name are cleared for that language.
3. Click **New**.
4. Select a language for the storefront option. If you don't have sites in different languages, select **Default** or the locale for the current site.
5. Enter a unique ID for the Sorting option.
    
    This ID is only used internally and in B2C Commerce to identify the sorting option.
    
    For example, to distinguish between two rules intended for different categories but sharing the display name `Hot sellers`, use different IDs such as `womensHotSellers` and `mensHotSellers`.
6. Enter a Display Name for the sort option.
    
    The Display Name shows in the Storefront.
7. Select a sorting rule from the dropdown.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)
    
    Note Global sorting rules apply to all sites.
8. If you’re creating the sorting option for an A/B test, select the AB Test Only checkbox.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)
    
    Note Selecting this option limits display of the sorting option to A/B tests where the specified sorting rule (set in Step7) applies.
9. To save your changes, click **Apply** at the bottom of the page. Clicking **Apply** for the Select Language option doesn't save changes.