From be7625830c7cfc7ffdd148cb738d3a166251f977 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 27 Jan 2019 09:24:01 +0100 Subject: [PATCH] [Utils] Sort bookmarks after adding a new one --- site-lisp/db-utils.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index ba60c80..dd5e971 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -539,7 +539,8 @@ it." (filename . ,location) (handler . ,#'(lambda (arg) (funcall handler (cdr (assoc 'filename arg)))))) - bookmark-alist)) + bookmark-alist) + (setq bookmark-alist (cl-sort bookmark-alist #'string-lessp :key #'car))) (defun db/bookmark-add-external (location name) "Add NAME as bookmark to LOCATION that is opened by the operating system."