Skip to content

Commit

Permalink
TemplateTree: sort by name
Browse files Browse the repository at this point in the history
fixes #2691
  • Loading branch information
Thomas-Gelf committed Dec 20, 2022
1 parent e03333b commit 2ecca2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/82-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This version hasn't been released yet
* FEATURE: allow to clone commands with fields (#2264)
* FEATURE: Data Fields are now sorted in a case-insensitive way (#2358)
* FEATURE: Deployment Log now breaks lines (#2677)
* FEATURE: Sort Template trees by name (#2691)
* FIX: do not fail for (some) Service Dependencies (#2669, #1142)

### Icinga Configuration
Expand Down
2 changes: 1 addition & 1 deletion library/Director/Resolver/TemplateTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public function fetchTemplates()
['p' => $table],
$joinCondition,
[]
)->order('o.id')->order('i.weight');
)->order('o.object_name')->order('i.weight');

if ($type !== 'command') {
$query->where(
Expand Down

0 comments on commit 2ecca2a

Please sign in to comment.