def test_get_list_order(self):
        """
        REST Api: Test get list order params
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        # test string order asc
        arguments = {"order_column": "field_integer", "order_direction": "asc"}
        uri = f"api/v1/model1api/?{API_URI_RIS_KEY}={prison.dumps(arguments)}"
        with model1_data(self.appbuilder.session, MODEL1_DATA_SIZE):
            rv = self.auth_client_get(client, token, uri)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(
                data[API_RESULT_RES_KEY][0],
                {
                    "field_date": None,
                    "field_float": 0.0,
                    "field_integer": 0,
                    "field_string": "test0",
                },
            )
            self.assertEqual(rv.status_code, 200)
            # test string order desc
            arguments = {"order_column": "field_integer", "order_direction": "desc"}
            uri = "api/v1/model1api/?{}={}".format(
                API_URI_RIS_KEY, prison.dumps(arguments)
            )
            rv = self.auth_client_get(client, token, uri)
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(
                data[API_RESULT_RES_KEY][0],
                {
                    "field_date": None,
                    "field_float": float(MODEL1_DATA_SIZE - 1),
                    "field_integer": MODEL1_DATA_SIZE - 1,
                    "field_string": "test{}".format(MODEL1_DATA_SIZE - 1),
                },
            )
            self.assertEqual(rv.status_code, 200)

        REST Api: Test get list order params
        
tests/test_api.py