tokenSortPartialRatio function

int tokenSortPartialRatio(
  1. String s1,
  2. String s2
)

Find all alphanumeric tokens in the string and sort these tokens and then take partial ratio of resulting joined strings.

Implementation

int tokenSortPartialRatio(String s1, String s2) {
  return TokenSort().apply(s1, s2, PartialRatio());
}