From 14e1e59d7da41421bb240d2f02b57b23d7e60408 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 29 Oct 2021 09:49:06 -0600 Subject: [PATCH] Calendar: Sort similar length all day events alphabetically --- calendar/js/et2_widget_daycol.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_daycol.ts b/calendar/js/et2_widget_daycol.ts index 146849c622..fa0204c472 100644 --- a/calendar/js/et2_widget_daycol.ts +++ b/calendar/js/et2_widget_daycol.ts @@ -927,7 +927,7 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache (new Date(b.options.value.end) - new Date(b.options.value.start)) - (new Date(a.options.value.end) - new Date(a.options.value.start)); - return duration ? duration : (a.options.value.app_id - b.options.value.app_id); + return (Math.abs(duration) > 360000) ? duration : (a.options.value.title.localeCompare(b.options.value.title)); } else if (a.options.value.whole_day || b.options.value.whole_day) {