DiredSorting

You can change the way vanilla DiredMode sorts files either by:

For a list of listing options, see ls manual.

Sort Directories First

You can accomplish this by customizing variable ‘dired-listing-switches’ to include ‘--group-directories-first’. For example:

(setq dired-listing-switches "-aBhl  --group-directories-first")

See DiredSortDirectoriesFirst for other solutions.

Add-ons for sorting

See also


CategoryDirectories DiredMode