public function sort(array $data = []): PodiumResponse
    {
        $categorySorter = $this->getSorter();

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

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

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

        return $categorySorter->sort();
    }
public function sort ( array $ data = [ ] ) : PodiumResponse { $ categorySorter = $ this -> getSorter ( ) ; if ( ! $ categorySorter -> loadData ( $ data ) ) { return PodiumResponse :: error ( ) ; } return $ categorySorter -> sort ( ) ; }
Sorts categories.
@param array $data
@return PodiumResponse
Sorts categories .