in reply to string similarity by using a function sort_by_similarity()
There's lots of good info in
A simple edit of your post to apply <code> ... </code> tags will help a lot.