module/FzyCommon/src/FzyCommon/Service/Search/Base/DQL.php
protected function getDataTablesSortOrder(Params $params)
    {
        $default = 'ASC';
        $order = strtoupper($params->getWrapped('order')->getWrapped(0)->get('dir', $default));
        if (!in_array($order, array($default, 'DESC'))) {
            $order = $default;
        }

        return $order;
    }
protected function getDataTablesSortOrder(Params $params)
    {
        $default = 'ASC';
        $order = strtoupper($params->getWrapped('order')->getWrapped(0)->get('dir', $default));
        if (!in_array($order, array($default, 'DESC'))) {
            $order = $default;
        }

        return $order;
    }
Returns the sort order specified by Datatables params (ASC / DESC)
@param  Params $params
@return string