dired-sort-other

dired-sort-other is a compiled Lisp function in `dired.el'.

(dired-sort-other SWITCHES &optional NO-REVERT)

Specify new `ls' SWITCHES for current Dired buffer.
Values matching `dired-sort-by-date-regexp' or `dired-sort-by-name-regexp'
set the minor mode accordingly, others appear literally in the mode line.
With optional second arg NO-REVERT, don't refresh the listing afterwards.