# Product sorting

### Sorting for module shortcodes

Drag-and-drop to order items manually for [module shortodes](https://ce-docs.keywordrush.com/frontend/pages/-MTUeqMBxUPDkLFSZ_Op#id-2.-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-3.-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: 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.
