What is an easy way to do a sorted diff between two files?

I have two files in which some of the lines have changed order. I would like to be able to compare these. One website suggested something that looks like this: diff <(sort text2) <(sort tex...