public function build($result)
    {
        $modelResult = new ModelResult($this);
        $modelResult->models = $result;
        if (count($result) > 0) {
            $modelResult->model = $result[0];
        }
        if ($this->order !== '') {
            $modelResult->order($this->order);
        }
        return $modelResult;
    }