Added sorting to Contents controller
Added sorting