The command "tar c" is not working!

The processing order is critical for the value of md5sum.
So, rather calculate every file's md5sum in a directory.