public function hasSort(string $field): bool
    {
        foreach ($this->sorts as $sort) {
            if ($field === $sort->getField()) {
                return true;
            }
        }

        return false;
    }
public function hasSort(string $field): bool
    {
        foreach ($this->sorts as $sort) {
            if ($field === $sort->getField()) {
                return true;
            }
        }

        return false;
    }
public function hasSort ( string $ field ) : bool { foreach ( $ this -> sorts as $ sort ) { if ( $ field === $ sort -> getField ( ) ) { return true ; } } return false ; }
Tell if this Jory contains a sorting on the given field.

@param string $field
@return bool
Tell if this Jory contains a sorting on the given field .