summaryrefslogtreecommitdiff
path: root/lisp/progmodes/project.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/project.el')
-rw-r--r--lisp/progmodes/project.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index dabc4ab6b45..b8a58ed317b 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -209,7 +209,8 @@ to find the list of ignores for each directory."
(shell-quote-argument ")"))"")
)))
(project--remote-file-names
- (split-string (shell-command-to-string command) "\0" t))))
+ (sort (split-string (shell-command-to-string command) "\0" t)
+ #'string<))))
(defun project--remote-file-names (local-files)
"Return LOCAL-FILES as if they were on the system of `default-directory'."