Order

Bases: Enum

An enumeration of possible orderings for query results. This object can be used for the order attribute of the OrderBy class to specify whether the ordering should be ascending or descending.

Attributes:
  • ASC

    Represents ascending order.

  • DESC

    Represents descending order.

Source code in src/alpha/infra/models/order_by.py
class Order(Enum):
    """An enumeration of possible orderings for query results. This object can
    be used for the `order` attribute of the `OrderBy` class to specify whether
    the ordering should be ascending or descending.

    Attributes
    ----------
    ASC
        Represents ascending order.
    DESC
        Represents descending order.
    """

    ASC = auto()
    DESC = auto()