diff --git a/library/Icingadb/Model/Downtime.php b/library/Icingadb/Model/Downtime.php index 0658ef88..b7e4e147 100644 --- a/library/Icingadb/Model/Downtime.php +++ b/library/Icingadb/Model/Downtime.php @@ -50,9 +50,9 @@ class Downtime extends Model ]; } - public function getSortRules() + public function getDefaultSort() { - return ['is_in_effect, start_time DESC']; + return ['downtime.is_in_effect', 'downtime.start_time desc']; } public function createBehaviors(Behaviors $behaviors)