original_docstring: 
      Measure the similarity between two strings based on :func:`levenshtein()`,
      only with non-alphanumeric characters removed and the ordering of words
      in each string sorted before comparison.
  
      Args:
          str1
          str2
  
      Returns:
          Similarity between ``str1`` and ``str2`` in the interval [0.0, 1.0],
          where larger values correspond to more similar strings.
      
docstring: Measure the similarity between two strings based on :func:`levenshtein()`,
  only with non-alphanumeric characters removed and the ordering of words
  in each string sorted before comparison.
  
  str1
  str2
  
  
docstring_tokens: Measure the similarity between two strings based on : func : ` levenshtein () ` only with non - alphanumeric characters removed and the ordering of words in each string sorted before comparison . str1 str2
code: def token_sort_ratio(str1: str, str2: str) -> float:
      """
      Measure the similarity between two strings based on :func:`levenshtein()`,
      only with non-alphanumeric characters removed and the ordering of words
      in each string sorted before comparison.
  
      Args:
          str1
          str2
  
      Returns:
          Similarity between ``str1`` and ``str2`` in the interval [0.0, 1.0],
          where larger values correspond to more similar strings.
      """
      if not str1 or not str2:
          return 0.0
      str1_proc = _process_and_sort(str1)
      str2_proc = _process_and_sort(str2)
      return levenshtein(str1_proc, str2_proc)
code_tokens: def token_sort_ratio ( str1 : str , str2 : str ) -> float : if not str1 or not str2 : return 0.0 str1_proc = _process_and_sort ( str1 ) str2_proc = _process_and_sort ( str2 ) return levenshtein ( str1_proc , str2_proc )
short_docstring: Measure the similarity between two strings based on :func:`levenshtein()`,
  only with non-alphanumeric characters removed and the ordering of words
  in each string sorted before comparison.
short_docstring_tokens: Measure the similarity between two strings based on : func : ` levenshtein () ` only with non - alphanumeric characters removed and the ordering of words in each string sorted before comparison .
comment: """
      Measure the similarity between two strings based on :func:`levenshtein()`,
      only with non-alphanumeric characters removed and the ordering of words
      in each string sorted before comparison.
  
      Args:
          str1
          str2
  
      Returns:
          Similarity between ``str1`` and ``str2`` in the interval [0.0, 1.0],
          where larger values correspond to more similar strings.
      """