diff --git a/lib/GaletteActivities/Repository/Subscriptions.php b/lib/GaletteActivities/Repository/Subscriptions.php index b3e27e9..5a4bea3 100644 --- a/lib/GaletteActivities/Repository/Subscriptions.php +++ b/lib/GaletteActivities/Repository/Subscriptions.php @@ -83,8 +83,6 @@ public function getList(bool $full = false): array { try { $select = $this->buildSelect(null); - $select->order($this->buildOrderClause()); - $this->proceedCount($select); if ($full !== true) { @@ -333,8 +331,8 @@ private function buildOrderClause(array $fields = null): array break; case self::ORDERBY_MEMBER: if ($this->canOrderBy(Adherent::PK, $fields)) { - $order[] = 'a.nom_adh ' . $this->filters->getDirection() . - ', a.prenom_adh ' . $this->filters->getDirection(); + $order[] = 'a.nom_adh ' . $this->filters->getDirection(); + $order[] = 'a.prenom_adh ' . $this->filters->getDirection(); } break; case self::ORDERBY_SUBSCRIPTIONDATE: