added sorting by time for calendar cells