order

BaseQueryBuilder.order(*args, direction='DESC')[source]

example: order(‘mycol’, ‘othercol’) == ORDER BY mycol, othercol DESC

Parameters
  • args – One or more order columns as individual args

  • direction – Direction to sort

Returns

QueryBuilder object (for chaining)