> 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

Ingredient Sort is a useful tool to order the ingredients according to weight or a custom order.

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="https://805823882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhG0lTGiTkuSbi8Obg8K2%2Fuploads%2F3tCidgMKGQfZAH94dFuh%2Fimage.png?alt=media&amp;token=2c18d7b3-916e-4fcd-b132-7a511517d61b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://805823882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhG0lTGiTkuSbi8Obg8K2%2Fuploads%2FSatcwNREtdCUxDPlK2LG%2Fimage.png?alt=media&amp;token=5903d7f4-2dde-406d-a033-af9d69850d71" 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="https://805823882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhG0lTGiTkuSbi8Obg8K2%2Fuploads%2FWcdOVG9q07mzFkr5YVgJ%2Fimage.png?alt=media&amp;token=eb4d4d98-21d2-4985-a0d1-864c66a8b654" 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="https://805823882-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhG0lTGiTkuSbi8Obg8K2%2Fuploads%2FfKrurV2mFejnrOWaaaxD%2Fimage.png?alt=media&amp;token=87a70293-ce6d-42c8-bf3e-355c62504eb0" 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 %}
