Added sorting of event items.