Function: ibut:label-sort-keys
ibut:label-sort-keys is a byte-compiled function defined in hbut.el.
Signature
(ibut:label-sort-keys LBL-KEYS)
Documentation
Return a sorted list of ibutton LBL-KEYS with highest instance number first.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbut.el
(defun ibut:label-sort-keys (lbl-keys)
"Return a sorted list of ibutton LBL-KEYS with highest instance number first."
(sort (delq nil lbl-keys) (lambda (key1 key2)
(setq key1
(cond ((null key1) 0)
((string-match (concat (regexp-quote hbut:instance-sep)
"\\([0-9]+\\)\\'")
key1)
(string-to-number (match-string 1 key1)))
(t 1))
key2
(cond ((null key2) 0)
((string-match (concat (regexp-quote hbut:instance-sep)
"\\([0-9]+\\)\\'")
key2)
(string-to-number (match-string 1 key2)))
(t 1)))
(> key1 key2))))