lib/query-tree-builder.js
function makeOrderElement(sql) {
	return {
		sql: (sql instanceof Translatable ? sql.translate.bind(sql) : sql)
	};
}
function makeOrderElement(sql) {
	return {
		sql: (sql instanceof Translatable ? sql.translate.bind(sql) : sql)
	};
}
function makeOrderElement ( sql ) { return { sql : ( sql instanceof Translatable ? sql . translate . bind ( sql ) : sql ) } ; }
Create and return an object for the order list element.

@private
@param {(string|module:x2node-dbos~Translatable|function)} sql The
value, which can be a SQL expression, a value expression object or a SQL
translation function.
@returns {Object} The order list element descriptor.
Create and return an object for the order list element .