diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php index e9719aa7698a39cc305722f8507f4cbad56f35c1..5dfc1496a9aec3a95fac56657ca117f0091d375b 100644 --- a/app/controllers/consultation/admin.php +++ b/app/controllers/consultation/admin.php @@ -103,18 +103,18 @@ class Consultation_AdminController extends ConsultationController if ($GLOBALS['user']->cfg->CONSULTATION_SHOW_GROUPED) { $this->blocks = $this->groupSlots(ConsultationSlot::findByRange( $this->range, - "ORDER BY start ASC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", + "ORDER BY start DESC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", true )); } else { $this->blocks = ConsultationBlock::findByRange( $this->range, - 'ORDER BY start ASC', + 'ORDER BY start DESC', true ); $this->slots = ConsultationSlot::findByRange( $this->range, - "ORDER BY start ASC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", + "ORDER BY start DESC LIMIT " . ($this->page * $this->limit) . ", {$this->limit}", true ); }