def test_column_ordering(self):
        self.populate(5)

        user6, addr6 = self.create_user('000_aaa', 'Whatever')
        user7, addr7 = self.create_user('zzz_aaa', 'Whatif')

        self.session.add(user6)
        self.session.add(user7)
        self.session.commit()

        columns = self.create_columns(['id', 'name', 'address.description',
                                       'created_at'])

        # DESC
        req = self.create_dt_params(
            order=[{"column": 1, "dir": "desc"}])

        rowTable = DataTables(
            req, User, self.session.query(User).join(Address), columns)

        res = rowTable.output_result()

        assert res['aaData'][0]['1'] == 'zzz_aaa'

        # ASC
        req = self.create_dt_params(order=[{"column": 1, "dir": "asc"}])

        rowTable = DataTables(
            req, User, self.session.query(User).join(Address), columns)

        res = rowTable.output_result()

        assert res['aaData'][0]['1'] == '000_aaa'

        # DESC first column
        req = self.create_dt_params(
            order=[{"column": 0, "dir": "desc"}])

        rowTable = DataTables(
            req, User, self.session.query(User).join(Address), columns)

        res = rowTable.output_result()

        assert res['aaData'][0]['1'] == 'zzz_aaa'
Returns the "query_threshold" for an org.  Searches from
dataset/ETHPy150Open Pegase745/sqlalchemy-datatables/tests/test_datatables_legacy.py/DataTablesLegacyTest.test_column_ordering--crossover with--dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/views/accounts.py/get_query_threshold