issue-46: use of isSame, isBefore and isAfter for grouping events in three groups