lib/dataset/query.js
function (args) {
            args = argsToArray(arguments);
            return this.order.apply(this, this._invertOrder(args.length ? args : this.__opts.order));
        }
function (args) {
            args = argsToArray(arguments);
            return this.order.apply(this, this._invertOrder(args.length ? args : this.__opts.order));
        }
function ( args ) { args = argsToArray ( arguments ) ; return this . order . apply ( this , this . _invertOrder ( args . length ? args : this . __opts . order ) ) ; }
Returns a copy of the dataset with the order reversed. If no order is
given, the existing order is inverted.

@example
DB.from("items").reverse("id");
//=> SELECT * FROM items ORDER BY id DESC

DB.from("items").order("id").reverse();
//=> SELECT * FROM items ORDER BY id DESC

DB.from("items").order("id").reverse(sql.identifier("name").asc);
//=> SELECT * FROM items ORDER BY name ASC

@param {String|patio.sql.Identifier|Function} args variable number of columns add to order before reversing.

@return {patio.Dataset} a cloned dataset with the order reversed.
Returns a copy of the dataset with the order reversed . If no order is given the existing order is inverted .