public function sort(ModelInterface $category, array $data = []): PodiumResponse
    {
        $forumSorter = $this->getSorter();

        $forumSorter->setCategory($category);

        if (!$forumSorter->loadData($data)) {
            return PodiumResponse::error();
        }

        return $forumSorter->sort();
    }
public function sort(ModelInterface $category, array $data = []): PodiumResponse
    {
        $forumSorter = $this->getSorter();

        $forumSorter->setCategory($category);

        if (!$forumSorter->loadData($data)) {
            return PodiumResponse::error();
        }

        return $forumSorter->sort();
    }
public function sort ( ModelInterface $ category , array $ data = [ ] ) : PodiumResponse { $ forumSorter = $ this -> getSorter ( ) ; $ forumSorter -> setCategory ( $ category ) ; if ( ! $ forumSorter -> loadData ( $ data ) ) { return PodiumResponse :: error ( ) ; } return $ forumSorter -> sort ( ) ; }
Sorts forums.
@param ModelInterface $category
@param array $data
@return PodiumResponse
Sorts forums .