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

# Product sorting

### Sorting for module shortcodes

Drag-and-drop to order items manually for [module shortcodes](https://ce-docs.keywordrush.com/frontend/pages/-MTUeqMBxUPDkLFSZ_Op#id-4.-module-shortcodes).

<figure><img src="/files/QSKvYm0qSPbq7RiVxG2K" alt=""><figcaption></figcaption></figure>

You can also add [sort/order](/frontend/shortcode-parameters.md#sort) shortcode parameters to sort by price or discount.

### Sorting for global shortcodes

Sorting in [global shortcodes](https://ce-docs.keywordrush.com/frontend/pages/-MTUeqMBxUPDkLFSZ_Op#id-5.-global-shortcodes) depends on the template. Usually products will be sorted by price.

<figure><img src="/files/sax5mMDzYYxkUfR6SCSZ" alt=""><figcaption></figcaption></figure>

You can add **custom sorting** to global shortcodes by setting product positions in the Order field. A lower value means the product will rank higher in the list.

<figure><img src="/files/q6AowpOYZizj5c9RjJCU" alt=""><figcaption></figcaption></figure>

The next method also works but is currently **deprecated**. You can add product positions in square brackets directly in the titles.

<figure><img src="/files/yyZMxXicoGCFPIgZz7hE" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/tIDMMTIUTOfsCYMGc3Uz" alt=""><figcaption></figcaption></figure>


---

# 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:

```
GET https://ce-docs.keywordrush.com/frontend/product-sorting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
