public function orderBy($column, $orderType = 'ASC')
    {
        if (empty($column) || is_null($column)) {
            throw new \Exception('Empty parameter given to order by clause');
        }
        $this->orderType = $orderType;

        if (is_array($column)) {
            $this->columnName = $this->extractArrayAttributes($column);

            return $this;
        }

        if (is_null($this->columnName)) {
            $this->columnName = $column;
        }

        return $this;
    }