> For the complete documentation index, see [llms.txt](https://docs.animaldietformulator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.animaldietformulator.com/animal-diet-formulator/recipes/ingredients-sorting.md).

# 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 %}
