fix sort order of calendar events