---
schema_version: "1"
id: 528d5aebd73d21722f49dd84d16de7d37033b915da55fb92e505b0831a9667d4
title: Edit or Delete a Sort Rule
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_search_sort_rule_edit_delete.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_search_sort_rule_edit_delete.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3f1a461c6f426b312fbe8fefe251ebf576204073edb431030411bf325d228959
description: You can edit a sort rule and change where it appears in the sorting menu of your B2B Commerce store. To remove a sort rule from the sorting menu, delete the rule.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# Edit or Delete a Sort Rule

You can edit a sort rule and change where it appears in the sorting menu of your B2B Commerce store. To remove a sort rule from the sorting menu, delete the rule.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=commerce.comm_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

[Which Salesforce Commerce Product Do I Have?](https://help.salesforce.com/s/articleView?id=commerce.comm_what_product.htm&language=en_US)

1. In the navigation sidebar, select a store from the **Store** dropdown.
2. Select **Settings** | **Search**.
3. Click **Sort Rules**.
4. For the sort rule that you want to edit, click the actions dropdown menu in the rightmost column of the table.
5. Click **Edit**.
    
    In the Edit sort option window, you can change these parameters.
    
     
    | Parameter | Description |
    | --- | --- |
    | Product Field Name | Product or attribute value to use for the sort rule. |
    | Sort Order | Choice of Ascending or Descending. |
    | Sort Order Label | Optional label to help clarify how sorting occurs. For example, alphabetically, numerically, by cost, the size of a product, and so on. |
    | Sort Menu Order | Numerical position where the sort option appears in the menu. |
6. For the sort rule that you want to delete, click the actions dropdown menu in the rightmost column of the table, and select **Delete**.
7. Click **Save**.
8. Update the search index.

#### See Also

- [Enable or Disable Sort for Search Results](https://help.salesforce.com/s/articleView?id=commerce.comm_search_sort_options_enable.htm&release=264.0.0&type=5 "Sorting is enabled for search and category pages in B2B Commerce stores by default. However, you can control whether customers can see the sorting menu that appears on these pages with the Results Layout component. You can change the sorting properties on any page that uses the Results Layout component.")
- [Add a Sort Rule](https://help.salesforce.com/s/articleView?id=commerce.comm_search_sort_rule_add.htm&release=264.0.0&type=5 "Create a sort rule based on available products and product attributes to let customers arrange results in search and category pages for B2B Commerce stores.")