I'm using mac and I use sudo du -h to show all sub directories in a parent directory with their size. Is there anyway i can use to sort the result by size?
I tried using sudo du -h | sort
but the result was organize in a strange way to me (Eg. 1K - 2k - 1M - 2M - 2K...)
Thank you very much.