Added sorting to data views