Selaa lähdekoodia

Merge pull request #19674 from mschamp/develop

Close #19673 order categories based on count of elements
Laurent Destailleur 3 vuotta sitten
vanhempi
commit
5666e90f56
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      htdocs/product/index.php

+ 1 - 0
htdocs/product/index.php

@@ -225,6 +225,7 @@ if (!empty($conf->categorie->enabled) && !empty($conf->global->CATEGORY_GRAPHSTA
 	$sql .= " WHERE c.type = 0";
 	$sql .= " AND c.entity IN (".getEntity('category').")";
 	$sql .= " GROUP BY c.label";
+	$sql .= " ORDER BY nb desc";
 	$total = 0;
 	$result = $db->query($sql);
 	if ($result) {