summaryrefslogtreecommitdiff
path: root/bookmark-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-31 20:50:05 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-31 20:50:05 +0800
commita6a1a96fb92e747b73ea420d3ceb3f6e9eb2e790 (patch)
tree05e133cce8b8aafc8bd36fe20d69f9dce491319f /bookmark-conf.el
parent89a50085a72db763863f22483226e10dfb6a7e45 (diff)
bookmark-conf: use a named function for sorting
Diffstat (limited to 'bookmark-conf.el')
-rw-r--r--bookmark-conf.el7
1 files changed, 1 insertions, 6 deletions
diff --git a/bookmark-conf.el b/bookmark-conf.el
index eaf6dbc..74878dd 100644
--- a/bookmark-conf.el
+++ b/bookmark-conf.el
@@ -92,12 +92,7 @@
;;;;; Automatic groups
(ilist-dag "durand" blist-filter-default-label
- (cond
- ;; The following two clauses ensure that the default group
- ;; stays at the bottom of the list.
- ((string= x "Default") nil)
- ((string= y "Default"))
- ((string-lessp x y)))
+ #'blist-filter-sorter-default
(save-match-data
(let* ((handler (bookmark-get-handler element))
(handler-name (and handler (format "%S" handler)))