When using sort the -h or the longopt version --human-numeric-sort sort human readable numbers (e.g., 2K 1G)

du -hd1 | sort -h  
321M    ./.ccache  
508M    ./build-perl-squeeze  
862M    ./7.6.1  

Add -r to sort to get the largest listed first.