Calendar items out of order

Hi,

I'm having a problem with KWGT where the calendar events are shown out of order. I'm not doing anything weird with ci(), just getting title, start, allday and using index 0, 1, 2 to get each of the three events' info.

Here is a screenshot

I've been seeing the same issue for a long time. I think the problem is that all-day events get placed before events that are not all-day. I don't think there is anything we can do differently as users. Kustom would need an adjustment to read all-day events differently.

In the screen capture below, both Tuesday events are for the same day.