Changed Sort Controller to View