diff --git a/CHANGES.md b/CHANGES.md index 79ae05fc7dd..0c6154a3e98 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,5 @@ # 7.0.10 2023-??-?? + - 2023-08-03 Fixed Bug - Snippets not sorted by name in search results. [#473](https://github.com/znuny/Znuny/issues/473) - 2023-08-02 Fixed Mentions CSS bug. https://github.com/znuny/Znuny/issues/419. - 2023-08-02 Fixed Popup profile positioning. Thanks to Paweł Bogusławski (@pboguslawski). [#433](https://github.com/znuny/Znuny/pull/433) - 2023-08-02 Fixed some minor spelling mistakes. Thanks to Tim Püttmanns (@tipue-dev), maxence. [PR#377](https://github.com/znuny/Znuny/pull/377) diff --git a/Kernel/System/Autocompletion/Template.pm b/Kernel/System/Autocompletion/Template.pm index 59f477c820d..3130d1c41f5 100644 --- a/Kernel/System/Autocompletion/Template.pm +++ b/Kernel/System/Autocompletion/Template.pm @@ -114,7 +114,9 @@ sub GetData { # Build autocompletion information for templates. my @Data; STANDARDTEMPLATEID: - for my $StandardTemplateID ( sort keys %StandardTemplates ) { + for my $StandardTemplateID ( sort { lc $StandardTemplates{$a} cmp lc $StandardTemplates{$b} || $a cmp $b } + keys %StandardTemplates ) + { my %StandardTemplate = $StandardTemplateObject->StandardTemplateGet( ID => $StandardTemplateID, );