Find all files in the current directory and its subdirectories (up to a maximum depth of 2) and execute the md5sum command on each of them, then sort the output by the second column.
find ./ -maxdepth 2 -type f -exec md5sum {} \; | sort -k 2