lib/query.js
function(key) {
      var self = this; 
      if (!this._order) {
        this._order = [];
      }
      Parse._arrayEach(arguments, function(key) {
        if (Array.isArray(key)) {
          key = key.join();
        }
        self._order = self._order.concat(key.replace(/\s/g, "").split(","));
      });
      return this;
    }
function(key) {
      var self = this; 
      if (!this._order) {
        this._order = [];
      }
      Parse._arrayEach(arguments, function(key) {
        if (Array.isArray(key)) {
          key = key.join();
        }
        self._order = self._order.concat(key.replace(/\s/g, "").split(","));
      });
      return this;
    }
function ( key ) { var self = this ; if ( ! this . _order ) { this . _order = [ ] ; } Parse . _arrayEach ( arguments , function ( key ) { if ( Array . isArray ( key ) ) { key = key . join ( ) ; } self . _order = self . _order . concat ( key . replace ( / \s / g , "" ) . split ( "," ) ) ; } ) ; return this ; }
Sorts the results in ascending order by the given key,
but can also add secondary sort descriptors without overwriting _order.

@param {(String|String[]|...String} key The key to order by, which is a
string of comma separated values, or an Array of keys, or multiple keys.
@return {Parse.Query} Returns the query, so you can chain this call.
Sorts the results in ascending order by the given key but can also add secondary sort descriptors without overwriting _order .