Variable: dired-ls-sorting-switches
dired-ls-sorting-switches is a variable defined in dired.el.gz.
Value
"SXU"
Documentation
String of ls switches (single letters) except "t" that influence sorting.
This indicates to Dired which option switches to watch out for because they
will change the sorting order behavior of ls.
To change the default sorting order (e.g. add a -v option), see the
variable dired-listing-switches. To temporarily override the listing
format, use C-u (universal-argument) C-x d (dired).
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
;;; Sorting
;; Most ls can only sort by name or by date (with -t), nothing else.
;; GNU ls sorts on size with -S, on extension with -X, and unsorted with -U.
;; So anything that does not contain these is sort "by name".
(defvar dired-ls-sorting-switches "SXU"
"String of `ls' switches (single letters) except \"t\" that influence sorting.
This indicates to Dired which option switches to watch out for because they
will change the sorting order behavior of `ls'.
To change the default sorting order (e.g. add a `-v' option), see the
variable `dired-listing-switches'. To temporarily override the listing
format, use `\\[universal-argument] \\[dired]'.")