Dear statalists,

I am not sure if this has been asked already as this is not easy to search for.

I was wondering if it possible to assert whether strings contain the same words irrespective of their ordering. My data looks like this:
Name 1 Name 2
David Joe Joe David
... ...
Any ideas? Thanks!


Felix