From 632076565ea1559272d5fd0eb414457776ae87e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20SO=C3=8BTE?= Date: Tue, 17 Nov 2020 22:20:41 +0000 Subject: [PATCH] Fix sort of the list of past sessions --- bin/plugin/open/selfListSessions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugin/open/selfListSessions b/bin/plugin/open/selfListSessions index 63345da..3c3fcef 100755 --- a/bin/plugin/open/selfListSessions +++ b/bin/plugin/open/selfListSessions @@ -107,7 +107,7 @@ else { my $list = $fnret->value; my @result; - foreach my $id (sort { $list->{$b} <=> $list->{$a} } keys %{$list}) { + foreach my $id (sort { $list->{$a}->{'id'} <=> $list->{$b}->{'id'} } keys %{$list}) { my $r = $list->{$id}; my $diff = ($r->{timestampend} + $r->{timestampendusec} / 1_000_000) - ($r->{timestamp} + $r->{timestampusec} / 1_000_000);