Fix event navigation in events with same timestamp

Closes #1071
Merge pull request #1279 from gthb/fix-issue-1071-rebased

Fix event navigation in events with same timestamp