Fix: La liste des produits n'tait pas tries.

This commit is contained in:
Laurent Destailleur 2005-08-13 18:10:37 +00:00
parent 7477ebb3d4
commit 71eab1b9ce

View File

@ -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);