module/FzyCommon/src/FzyCommon/Service/Search/Base/DQL.php
protected function orderByDataTablesParams(Params $params, QueryBuilder $qb)
    {
        $order = $this->getDataTablesSortOrder($params);
        $sort = $this->getDataTablesSortColumn($params);
        if ($sort) {
            $qb->addOrderBy($this->alias($sort), $order);
        }

        return $this;
    }
protected function orderByDataTablesParams(Params $params, QueryBuilder $qb)
    {
        $order = $this->getDataTablesSortOrder($params);
        $sort = $this->getDataTablesSortColumn($params);
        if ($sort) {
            $qb->addOrderBy($this->alias($sort), $order);
        }

        return $this;
    }
Uses datatables request paramters to determine the column name to order by
@param  Params       $params
@param  QueryBuilder $qb
@return $this