Skip to content

Commit

Permalink
Issue #3277: Added sorting statement to sysconfig setting iteration.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Apr 3, 2024
1 parent 97f064c commit 1d6969e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Modules/AdminSystemConfiguration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ sub Run {
my @SettingList = $Kernel::OM->Get('Kernel::System::SysConfig')->ConfigurationList();

SETTING:
for my $Setting ( sort @SettingList ) {
for my $Setting ( sort { $a->{Name} cmp $b->{Name} } @SettingList ) {

# Skip setting if search term doesn't match.
next SETTING if $Setting->{Name} !~ m{\Q$Search\E}msi;
Expand Down

0 comments on commit 1d6969e

Please sign in to comment.