Calendar: Sort similar length all day events alphabetically

This commit is contained in:
nathan 2021-10-29 09:49:06 -06:00
parent 8e65ea9b3f
commit 14e1e59d7d

View File

@ -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)
{