docstr: Annotation Api: Test sorting on get list of annotations
docstr_tok: ["Annotation","Api",":","Test","sorting","on","get","list","of","annotations"]
code: def test_get_list_annotation_sorting(self):
      """
      Annotation Api: Test sorting on get list of annotations
      """
      layer = self.get_layer_with_annotation()
      self.login(username="admin")
  
      order_columns = [
          "short_descr",
          "created_by.first_name",
          "changed_by.first_name",
          "changed_on_delta_humanized",
          "start_dttm",
          "end_dttm",
      ]
      for order_column in order_columns:
          arguments = {
              "order_column": order_column,
              "order_direction": "asc",
          }
          uri = f"api/v1/annotation_layer/{layer.id}/annotation/?q={prison.dumps(arguments)}"
          rv = self.get_assert_metric(uri, "get_list")
          assert rv.status_code == 200
  
imports: import json
  import pytest
  import prison
  from sqlalchemy.sql import func
  import tests.integration_tests.test_app
  from superset import db
  from superset.models.annotations import Annotation, AnnotationLayer
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.annotation_layers.fixtures import create_annotation_layers, get_end_dttm, get_start_dttm
  from tests.unit_tests.annotation_layers.fixtures import START_STR, END_STR
label_desc: Use image node_id 23 for calling the TestAnnotationLayerApi obj's underlying member method code with example usage: obj.test_get_list_annotation_sorting() without return types