diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php index 1eecc29cce6019fdce9142b41610a2993bb21009..737a667b70bfc435b80755374bdcb1e0f499075d 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 ); }