(self)
Returns the list of order by aliases that are enforcing ordering on the
        data.

        If the data is unordered, an empty sequence is returned. If the
        ordering can not be determined, `None` is returned.

        This works by inspecting the actual underlying data. As such it's only
        supported for querysets.
Returns the list of order by aliases that are enforcing ordering on the
        data.
Returns the list of order by aliases that are enforcing ordering on the data .
def ordering(self):
        """
        Returns the list of order by aliases that are enforcing ordering on the
        data.

        If the data is unordered, an empty sequence is returned. If the
        ordering can not be determined, `None` is returned.

        This works by inspecting the actual underlying data. As such it's only
        supported for querysets.
        """

        aliases = {}
        for bound_column in self.table.columns:
            aliases[bound_column.order_by_alias] = bound_column.order_by
        try:
            return next(segment(self.data.query.order_by, aliases))
        except StopIteration:
            pass
def ordering ( self ) : aliases = { } for bound_column in self . table . columns : aliases [ bound_column . order_by_alias ] = bound_column . order_by try : return next ( segment ( self . data . query . order_by , aliases ) ) except StopIteration : pass