Added sorting to Events page