What is the difference between the following to commands?
sort -u FILE sort FILE | uniq
sort -u will be slightly faster, because it does not need to pipe the output between two commands
sort -u
also see my question on the topic: calling uniq and sort in different orders in shell