nodes: 0, module; 1, function_definition; 2, function_name:get_sorting; 3, parameters; 4, block; 5, identifier:self; 6, identifier:request; 7, dictionary_splat_pattern; 8, expression_statement; 9, expression_statement; 10, if_statement; 11, expression_statement; 12, return_statement; 13, identifier:resources; 14, comment:""" Get sorting options.
  
          :return list: sorting order
  
          """; 15, assignment; 16, not_operator; 17, block; 18, assignment; 19, call; 20, identifier:sorting; 21, list; 22, attribute; 23, return_statement; 24, identifier:prefix; 25, binary_operator:self._meta.dyn_prefix + 'sort'; 26, attribute; 27, argument_list; 28, identifier:request; 29, identifier:GET; 30, identifier:sorting; 31, attribute; 32, string; 33, attribute; 34, identifier:getlist; 35, identifier:prefix; 36, attribute; 37, identifier:dyn_prefix; 38, string_content:sort; 39, identifier:request; 40, identifier:GET; 41, identifier:self; 42, identifier:_meta
code: def get_sorting(self, request, **resources):
          """ Get sorting options.
  
          :return list: sorting order
  
          """
          sorting = []
  
          if not request.GET:
              return sorting
  
          prefix = self._meta.dyn_prefix + 'sort'
          return request.GET.getlist(prefix)