Xah Lee just taught me something new about dired sorting. I mostly just sort the list by name but occasionally I want to see the newer entries so I toggle the sorting to “date” by typing 【s】. It turns out, though, that you can also sort by any of the fields supported by ls
. This includes such things as displaying file sizes by kilo- or megabytes.
Head on over to Lee’s site for the details. If you’re like me, you’ll mostly want to sort by name or date but when you need it sorted another way, Lee shows you how. You can also set the variable dired-listing-switches
to make your changes the default. Very useful post.