This is an implementation of https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance Checkout TestSort in *_test.go for an example of how you might use this as a metric for sorting strings.
This is an implementation of https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance Checkout TestSort in *_test.go for an example of how you might use this as a metric for sorting strings.