diff --git a/gestion/lib/Db/Bdd.php b/gestion/lib/Db/Bdd.php index d8e3a17..ffd65f6 100644 --- a/gestion/lib/Db/Bdd.php +++ b/gestion/lib/Db/Bdd.php @@ -428,7 +428,8 @@ class Bdd { } public function getProduits($idNextcloud){ - $sql = "SELECT * FROM ".$this->tableprefix."produit;"; + $sql = "SELECT * + FROM ".$this->tableprefix."produit ORDER BY id DESC;"; return $this->execSQL($sql, array()); }