> 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="/files/6J6GDmfiU1dsd7NPmTmf" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
