diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 2130066744e..fd2aa34ca06 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -452,7 +452,7 @@ class Form
$sql.= " FROM ".MAIN_DB_PREFIX."product as p ";
$sql.= " WHERE p.envente = 1";
if ($filtretype && $filtretype != '') $sql.=" AND p.fk_product_type=".$filtretype;
- $sql.= " ORDER BY p.nbvente DESC";
+ $sql.= " ORDER BY p.ref";
if ($limit) $sql.= " LIMIT $limit";
$result=$this->db->query($sql);