# Ingredients Sorting

To sort the Recipe Ingredients, click the Sort menu item from the [Formulation Menu](/animal-diet-formulator/recipes/formulation.md#formulation-menu-section) Section.

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

Clicking the button will show the pop-up containing the options for Sorting.&#x20;

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

The options for sorting are as follows.

1. Sort by Weight Ascending
   * Clicking this option will sort the ingredients by weight in Ascending Order.
2. Sort by Weight Descending
   * Clicking this option will sort the ingredients by weight in Descending Order.
3. Sort by Custom
   * Clicking this option will show a pop-up. Where ingredients can be arranged as desired.&#x20;

### Sorting ingredients by Custom

Below is the pop-up that will show when the Sort by Custom option is selected.&#x20;

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

1. Grab Icon and Ingredient Name
   * Click and drag the row to re-order the ingredients
2. Apply button
   * Click to Apply the custom sorting of ingredients
3. Close Button
   * Click to disregard the sorting of ingredients.

The sort icon in the [Ingredients Section](/animal-diet-formulator/recipes/formulation.md#ingredients-section) indicates the sort type selected.

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

{% hint style="info" %}
After updating the amount of any ingredient, the sorting of ingredients will automatically change to Custom to avoid movements of ingredients.
{% endhint %}


---

# 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.animaldietformulator.com/animal-diet-formulator/recipes/ingredients-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.
