From bda868be5494a6fa1b015f9235290d12e309e215 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 25 Aug 2005 07:44:48 +0000 Subject: [PATCH] Correction de select_produits tri par nbvente --- htdocs/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index ac5ce39da57..4aab053af50 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -453,7 +453,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.ref"; + $sql.= " ORDER BY p.nbvente DESC"; if ($limit) $sql.= " LIMIT $limit"; $result=$this->db->query($sql);