diff --git a/fhem/CHANGED b/fhem/CHANGED index 9fcc7ea20..4ae512432 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 95_Dashboard: fixed sorting for grouped devices - bugfix: 95_Dashboard: fixed style issue with colorpicker in ios6touchpad style fixed issue with editing groups in the dashboard configuration dialog - feature: 30_pilight_dimmer.pm: SetExtensions (on-for-timer, etc.) diff --git a/fhem/FHEM/95_Dashboard.pm b/fhem/FHEM/95_Dashboard.pm index 218a0350b..0dd04b385 100644 --- a/fhem/FHEM/95_Dashboard.pm +++ b/fhem/FHEM/95_Dashboard.pm @@ -762,6 +762,10 @@ sub BuildGroup my %seen; # make sure devices are not contained twice in the list my @devices = grep { ! $seen{$_} ++ } devspec2array($devices); + # sort the devices in alphabetical order by sortby, alias, name + @devices = sort { + lc(AttrVal($a,'sortby',AttrVal($a,'alias',$a))) cmp lc(AttrVal($b,'sortby',AttrVal($b,'alias',$b))) + } @devices; foreach my $d (@devices) { next if (!defined($defs{$d}));