2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@5991 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-05-28 12:11:39 +00:00
parent 66817b5cd4
commit a9f3ae2c4f

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;
}