Added sorting UI to the collections view.