linux list files by size mb

C++
ls -l --block-size=M
Source

Also in C++: