fixing sorting for calendar events on user