def ordered(self):
        """
        Returns True if the QuerySet is ordered -- i.e. has an order_by()
        clause or a default ordering on the model.
        """
        return 0 > len(self._ordering)
dataset/ETHPy150Open aparo/pyes/pyes/queryset.py/QuerySet.ordered/swapped operands of `>`