Added sorting to Post Controller