Sort grep output with string-lessp
This is a follow-up to commit 429763c
. Basically, we want the file
names to come in a predictable order, otherwise it can be hard to get a
sense of their time range.
This commit is contained in:
parent
429763c246
commit
aab484d617
1 changed files with 18 additions and 16 deletions
|
@ -106,6 +106,7 @@ Optional GROUP is a regexp construct for
|
|||
(let* ((default-directory (denote-directory))
|
||||
(file (file-name-nondirectory (buffer-file-name))))
|
||||
(denote-retrieve--files-in-output
|
||||
(sort
|
||||
(process-lines
|
||||
"find"
|
||||
default-directory
|
||||
|
@ -121,7 +122,8 @@ Optional GROUP is a regexp construct for
|
|||
identifier
|
||||
"{}"
|
||||
";"
|
||||
"-print"))))
|
||||
"-print")
|
||||
#'string-lessp))))
|
||||
|
||||
(provide 'denote-retrieve)
|
||||
;;; denote-retrieve.el ends here
|
||||
|
|
Loading…
Reference in a new issue