src/api/v3/converter.js
function queryRequest(queryOptions) {

    if (!queryOptions) {
        return;
    }

    var options = util._extend({}, queryOptions);

    if (options.query && options.query.length) {
        options.query = '&sq=' + encodeURIComponent(options.query);
    }

    if (options.sort) {
        options.orderBy = '&orderby=column:' + options.sort;
        delete options.sort;
    }

    if (options.descending) {
        options.reverse = '&reverse=true';
        delete options.descending;
    }

    return options;
}
function queryRequest(queryOptions) {

    if (!queryOptions) {
        return;
    }

    var options = util._extend({}, queryOptions);

    if (options.query && options.query.length) {
        options.query = '&sq=' + encodeURIComponent(options.query);
    }

    if (options.sort) {
        options.orderBy = '&orderby=column:' + options.sort;
        delete options.sort;
    }

    if (options.descending) {
        options.reverse = '&reverse=true';
        delete options.descending;
    }

    return options;
}
function queryRequest ( queryOptions ) { if ( ! queryOptions ) { return ; } var options = util . _extend ( { } , queryOptions ) ; if ( options . query && options . query . length ) { options . query = '&sq=' + encodeURIComponent ( options . query ) ; } if ( options . sort ) { options . orderBy = '&orderby=column:' + options . sort ; delete options . sort ; } if ( options . descending ) { options . reverse = '&reverse=true' ; delete options . descending ; } return options ; }
Transforms query request object

@param queryOptions
@returns {*}
Transforms query request object