Compare two commands' output without temp files:
diff <(sort old.txt) <(sort new.txt)
<(...) is process substitution. The shell gives diff a fake file that holds each command's output. Works in bash and zsh.commit 9287f95