first 4 events are Multi Day Event, the following 2 are 1 day event, and last 2 multi day event. all should have been sorted by Start date right?
if the event is set as repeating it isn't a problem because it only is displays the current day, but for a repeating event the start and end dates are the same on the details page..
i've added the code in latest.php:
usort($daysEvents, function ($a, $b) {
if($this->sortReverse)
return $a->_startrepeat < $b->_startrepeat;
else
return $a->_startrepeat > $b->_startrepeat;
});
after line 998 which is
reset($daysEvents);
and before
foreach ($daysEvents as $dayEvent) {
and it works, any other solution without changing the code?