Added sorting to list view.