# Sorting

With YayExtra - WooCommerce Extra Product Options, you can sort the option sets, and option items all the way you want using the sorting feature. This helps the custom product options display in the right order on your front end.

1. **Sorting option sets**

To sort the option sets, simply drag and drop them as shown in the GIF image below. This allows you to easily rearrange the order of option sets to match your preference or display priority.

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

2. **Sorting option items**&#x20;

![Drag and drop, duplicate, delete option items](/files/AClmkCGJ1UdlwVEYFGtF)

Re-ordering an option leaves it intact. Meaning all of its content and settings stay the same regardless of its position on the product page, including:

* Option name (label)
* Option type
* Option values
* Advanced settings
* Conditional logics
* Additional pricing and description


---

# 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://docs.yaycommerce.com/yayextra/how-it-works/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.
