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