diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index 8ffaf45d500..2fcf33123fb 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -601,7 +601,7 @@ else $sql .= " AND date_format(f.datef, '%Y') = $year"; } - $sql .= " ORDER BY f.fk_statut, f.paye, f.datef, f.facnumber DESC "; + $sql .= " ORDER BY f.fk_statut, f.paye, f.datef DESC, f.facnumber DESC "; $result = $db->query($sql); if ($result) {