> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/commerce/browse-controls/sorting-management.md).

# Sorting management

This guide explains how to configure and manage sorting options for your search and browse experiences within the Commerce app. This feature allows you to define which attributes users can use to sort products on your site, providing a consistent and relevant merchandising experience across all category and search pages .

{% stepper %}
{% step %}

### Create Sorting

1. Open the **Commerce** app.
2. Under **Browse Controls**, select **Sorting** **management**.
3. Click on **Create Sorting** to start setting up your sorting rules .
   {% endstep %}

{% step %}

### Define the Scope (Search Cases)

<figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FwF4jhhIxQynBBkFdxxKu%2Fimage.png?alt=media&amp;token=8c9a28e8-7b41-4605-907e-98f06d218931" alt=""><figcaption></figcaption></figure>

* **All**: Select this option to apply these sorting rules universally across all search results and categories .
* **Specific**: Select this option to target individual keywords, search terms, or specific categories .
  * If selected, type your search case (e.g., "shoes" or "winter collection") in the input field and press **Enter**.
    {% endstep %}

{% step %}

### Manage Sortable Attributes

Define and order the attributes that your shoppers can use to sort products on the front-end storefront .

1. **Add an Attribute**: Click **Add sortable attribute +** to choose a product field (e.g., price, name, newest, popularity).
2. **Reorder Priority**: Use the **Up/Down arrows** on the left of each attribute card to change its hierarchy and sequence in the dropdown menu.
3. **Edit**: Click the **Pencil icon** to modify the attribute's display name or configuration.
4. **Delete**: Click the **Trash icon** to remove an attribute from the sorting options.
   {% endstep %}

{% step %}

### Save and Apply

Once your sorting rules and attributes are set, click **Save and apply** in the top-right corner of the interface to push the configurations live to your storefront.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.abtasty.com/commerce/browse-controls/sorting-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
