Variable: magit-submodule-list-sort-key

magit-submodule-list-sort-key is a customizable variable defined in magit-submodule.el.

Value

("Path")

Documentation

Initial sort key for buffer created by magit-list-submodules.

If nil, no additional sorting is performed. Otherwise, this should be a cons cell (NAME . FLIP). NAME is a string matching one of the column names in magit-submodule-list-columns. FLIP, if non-nil, means to invert the resulting sort.

This variable was added, or its default value changed, in magit version 3.2.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-submodule.el
(defcustom magit-submodule-list-sort-key '("Path" . nil)
  "Initial sort key for buffer created by `magit-list-submodules'.
If nil, no additional sorting is performed.  Otherwise, this
should be a cons cell (NAME . FLIP).  NAME is a string matching
one of the column names in `magit-submodule-list-columns'.  FLIP,
if non-nil, means to invert the resulting sort."
  :package-version '(magit . "3.2.0")
  :group 'magit-repolist
  :type '(choice (const nil)
                 (cons (string :tag "Column name")
                       (boolean :tag "Flip order"))))