http://www.perlmonks.org?node_id=746578


in reply to Re^3: du -h, sorted
in thread du -h, sorted

Oh, I see. Could I then also change the regex to save two more characters?
perl -e'sub c{pop=~/.\s/;(ord$&&7).1e3+$`}print sort{c($b)<=>c$a}`du - +h`'
74 characters.

And, in fact, since we are only using .1e3 to make sure the sizes sort properly, why not save one more:
perl -e'sub c{pop=~/.\s/;(ord$&&7)**7+$`}print sort{c($b)<=>c$a}`du -h +`'
73 characters.