From 08266a4b92b6d05911d8f71ca4fb040c234b373c Mon Sep 17 00:00:00 2001 From: Bernhard Friedreich Date: Mon, 6 May 2019 19:42:24 +0200 Subject: [PATCH] Sort list of applied services by object_name (#1862) --- library/Director/Web/Table/IcingaHostAppliedServicesTable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Director/Web/Table/IcingaHostAppliedServicesTable.php b/library/Director/Web/Table/IcingaHostAppliedServicesTable.php index 95635be4..5f02eb7e 100644 --- a/library/Director/Web/Table/IcingaHostAppliedServicesTable.php +++ b/library/Director/Web/Table/IcingaHostAppliedServicesTable.php @@ -193,7 +193,8 @@ class IcingaHostAppliedServicesTable extends SimpleQueryBasedTable ['hsb' => 'icinga_host_service_blacklist'], $db->quoteInto('s.id = hsb.service_id AND hsb.host_id = ?', $this->host->get('id')), [] - )->where('object_type = ? AND assign_filter IS NOT NULL', 'apply'); + )->where('object_type = ? AND assign_filter IS NOT NULL', 'apply') + ->order('s.object_name'); return $db->fetchAll($query); }