lib/waterline/utils/query/get-query-modifier-methods.js
function(sortClause) {

    if (!this._alreadyInitiallyExpandedCriteria) {
      this._wlQueryInfo.criteria = expandWhereShorthand(this._wlQueryInfo.criteria);
      this._alreadyInitiallyExpandedCriteria = true;
    }//>-

    this._wlQueryInfo.criteria.sort = sortClause;

    return this;
  }
function(sortClause) {

    if (!this._alreadyInitiallyExpandedCriteria) {
      this._wlQueryInfo.criteria = expandWhereShorthand(this._wlQueryInfo.criteria);
      this._alreadyInitiallyExpandedCriteria = true;
    }//>-

    this._wlQueryInfo.criteria.sort = sortClause;

    return this;
  }
function ( sortClause ) { if ( ! this . _alreadyInitiallyExpandedCriteria ) { this . _wlQueryInfo . criteria = expandWhereShorthand ( this . _wlQueryInfo . criteria ) ; this . _alreadyInitiallyExpandedCriteria = true ; } //>- this . _wlQueryInfo . criteria . sort = sortClause ; return this ; }
Add a `sort` clause to the criteria object

@param {Ref} sortClause
@returns {Query}
Add a sort clause to the criteria object