From f4feb72d4a9ccb02d4b0e750de47ae5f60e49fc1 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 31 Aug 2024 13:12:03 +0200 Subject: fix sort by end date (not only start date) --- lib/Object/Groupware/Calendar.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Object/Groupware/Calendar.pm b/lib/Object/Groupware/Calendar.pm index 386a749..3d46032 100644 --- a/lib/Object/Groupware/Calendar.pm +++ b/lib/Object/Groupware/Calendar.pm @@ -49,7 +49,7 @@ method events ( $set = undef, $period = undef ) ) } sort { $a->start->compare( $b->start ) - || $a->start->compare( $b->start ) + || $a->end ? $a->end->compare( $b->end ) : 0 || $a->summary cmp $b->summary } $data->events( $set || (), $period || () ); -- cgit v1.2.3