diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 5e875be176d..2577d70e549 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -682,6 +682,7 @@ class FormFile
// Model
if (! empty($modellist))
{
+ asort($modellist);
$out.= ''.$langs->trans('Model').' ';
if (is_array($modellist) && count($modellist) == 1) // If there is only one element
{