From 97473538ba5be9770ff86c8f776d9be8f7293f42 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 26 Feb 2015 17:52:10 +0000 Subject: [PATCH] fhem.pl: better sorting of modules for Dispatch (Forum #34289) git-svn-id: https://svn.fhem.de/fhem/trunk@8099 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index a0192f3a5..eb60144a2 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -3837,7 +3837,7 @@ computeClientArray($$) my @a = (); my @mRe = split(":", $hash->{Clients} ? $hash->{Clients}:$module->{Clients}); - foreach my $m (sort { $modules{$a}{ORDER} cmp $modules{$b}{ORDER} } + foreach my $m (sort { $modules{$a}{ORDER}.$a cmp $modules{$b}{ORDER}.$b } grep { defined($modules{$_}{ORDER}) } keys %modules) { foreach my $re (@mRe) { if($m =~ m/^$re$/) {