Variable: projectile-sort-order

projectile-sort-order is a customizable variable defined in projectile.el.

Value

default

Documentation

The sort order used for a project's files.

It can also be set to a function that takes the list of project files (as relative paths) and returns them in the desired order.

Note that files aren't sorted if projectile-indexing-method is set to alien.

This variable was added, or its default value changed, in projectile version 3.1.0.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-sort-order 'default
  "The sort order used for a project's files.

It can also be set to a function that takes the list of project
files (as relative paths) and returns them in the desired order.

Note that files aren't sorted if `projectile-indexing-method'
is set to `alien'."
  :group 'projectile
  :type '(choice
          (const :tag "Default (no sorting)" default)
          (const :tag "Recently opened files" recentf)
          (const :tag "Recently active buffers, then recently opened files" recently-active)
          (const :tag "Access time (atime)" access-time)
          (const :tag "Modification time (mtime)" modification-time)
          (function :tag "Custom sort function"))
  :package-version '(projectile . "3.1.0"))