nodes: 0, module; 1, function_definition; 2, function_name:get_cookie_browse_sorting; 3, parameters; 4, block; 5, identifier:path; 6, identifier:default; 7, expression_statement; 8, if_statement; 9, return_statement; 10, string; 11, identifier:request; 12, block; 13, identifier:default; 14, string_content:Get sorting-cookie data for path of current request.
  
      :returns: sorting property
      :rtype: string; 15, for_statement; 16, pattern_list; 17, call; 18, block; 19, identifier:cpath; 20, identifier:cprop; 21, identifier:iter_cookie_browse_sorting; 22, argument_list; 23, if_statement; 24, attribute; 25, comparison_operator:path == cpath; 26, block; 27, identifier:request; 28, identifier:cookies; 29, identifier:path; 30, identifier:cpath; 31, return_statement; 32, identifier:cprop
code: def get_cookie_browse_sorting(path, default):
      '''
      Get sorting-cookie data for path of current request.
  
      :returns: sorting property
      :rtype: string
      '''
      if request:
          for cpath, cprop in iter_cookie_browse_sorting(request.cookies):
              if path == cpath:
                  return cprop
      return default