Skip to content

queryset.order_query

OrderQuery Objects

1
class OrderQuery()

Modifies the select query with given list of order_by clauses.

apply

1
 | apply(expr: sqlalchemy.sql.select) -> sqlalchemy.sql.select

Applies all order_by clauses if set.

Arguments:

  • expr: query to modify :type expr: sqlalchemy.sql.selectable.Select

Returns:

modified query :rtype: sqlalchemy.sql.selectable.Select