@inspection._self_inspects @log.class_logger classQuery(object): @_generative(_no_statement_condition, _no_limit_offset) deforder_by(self, *criterion): """apply one or more ORDER BY criterion to the query and return the newly resulting ``Query`` All existing ORDER BY settings can be suppressed by passing ``None`` - this will suppress any ORDER BY configured on mappers as well. Alternatively, passing False will reset ORDER BY and additionally re-allow default mapper.order_by to take place. Note mapper.order_by is deprecated. """
iflen(criterion) == 1: if criterion[0] isFalse: if'_order_by'in self.__dict__: self._order_by = False return if criterion[0] isNone: self._order_by = None return