fhem.pl: better sorting of modules for Dispatch (Forum #34289)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8099 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-02-26 17:52:10 +00:00
parent ebe108568e
commit adb5d8ec43

View File

@@ -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$/) {