Sort directories by size when sorting files by size.
Similar to UNIX: du -sh * | sort -hr
This may be slow, so it can be done by having a low-priority background thread calculate directory sizes and update the list asynchronously only if the user hasn't moved on to some other directory.
-
Michael K. commented
Interesting. That's been a fundamental question of mine for 30 years, and I'm sure it's possible, please tell me how, and if not please add it: when viewing a directory list with directories at top and then the files why can't the program count the number of files in each directory and sort for the entire display by size so we're going to directory with a one file it shows up down with my batch files and if I have a directory with 10 files that shows up with a file, and a megabyte sized directory would show up with the programs. Everything displayed sorted by size!