mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
fix sortDevices and <...> headings (http://forum.fhem.de/index.php/topic,14608.msg172326.html#msg172326)
git-svn-id: https://svn.fhem.de/fhem/trunk@5991 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
66817b5cd4
commit
a9f3ae2c4f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user