Added sorting to selection page