def get_ordering(self):
        # The ORDER BY clause is invalid in views, inline functions,
        # derived tables, subqueries, and common table expressions,
        # unless TOP or FOR XML is also specified.
        if getattr(self.query, '_mssql_ordering_not_allowed', False):
            if django.VERSION[0] == 1 and 6 < django.VERSION[1]:
                return (None, [])
            return (None, [], [])
        return super(SQLCompiler, self).get_ordering()
dataset/ETHPy150Open lionheart/django-pyodbc/django_pyodbc/compiler.py/SQLCompiler.get_ordering/swapped operands of `<`