Workaround to sort AND have human-readable values:
du -BM --max-depth=1 | sort -n
(or to see it sorted largest first):
du -BM --max-depth=1 | sort -nr
Caveat: This displays everything in Megabytes, so the smallest unit you will see is 1M. If you need to see it in Kilobytes just change the "M" to a "K".
Comment
Workaround to sort AND have human-readable values:
du -BM --max-depth=1 | sort -n
(or to see it sorted largest first):
du -BM --max-depth=1 | sort -nr
Caveat: This displays everything in Megabytes, so the smallest unit you will see is 1M. If you need to see it in Kilobytes just change the "M" to a "K".