Added sorting repeat events