git-svn-id: https://svn.fhem.de/fhem/trunk@5991 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-05-28 12:11:39 +00:00
parent 6b2ee4ca4c
commit 33de356cbf

View File

@@ -131,6 +131,8 @@ readingsGroup_updateDevices($)
if( AttrVal( $hash->{NAME}, "sortDevices", 0 ) == 1 ) {
@devices = sort { my $aa = @{$a}[0]; my $bb = @{$b}[0];
$aa = "#" if( $aa =~ m/^</ );
$bb = "#" if( $bb =~ m/^</ );
lc(AttrVal($aa,"sortby",AttrVal($aa,"alias",$aa))) cmp
lc(AttrVal($bb,"sortby",AttrVal($bb,"alias",$bb))) } @devices;
}