code: def iter_cookie_browse_sorting(cookies):
      '''
      Get sorting-cookie from cookies dictionary.
      :yields: tuple of path and sorting property
      :ytype: 2-tuple of strings
      '''
      try:
          data = cookies.get('browse-sorting', 'e30=').encode('ascii')
          for path, prop in json.loads(base64.b64decode(data).decode('utf-8')):
              yield path, prop
      except (ValueError, TypeError, KeyError) as e:
          logger.exception(e)