73_km200.pm: bugfix: Errorlist unsorted timestamp

git-svn-id: https://svn.fhem.de/fhem/trunk@14144 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Sailor
2017-04-30 14:15:37 +00:00
parent bb7d3ae291
commit 24c6e61da8

View File

@@ -2829,7 +2829,7 @@ sub km200_ParseHttpResponseDyn($)
my $TempServiceIndex = 0;
### Sort list by timestamps descending
# my @TempSortedErrorList = sort { $b->{t} <=> $a->{t} } @{ $json->{values} };
my @TempSortedErrorList = sort { $b->{t} cmp $a->{t} } @{ $json->{values} };
my @TempSortedErrorList = sort ( @{ $json->{values} } );