Function: org-cite-key-number
org-cite-key-number is a byte-compiled function defined in oc.el.gz.
Signature
(org-cite-key-number KEY INFO &optional PREDICATE)
Documentation
Return number associated to string KEY.
INFO is the export communication channel, as a property list.
Optional argument PREDICATE is called with two keys, and returns non-nil if the first reference should sort before the second. When nil, references are sorted in order cited.
Source Code
;; Defined in /usr/src/emacs/lisp/org/oc.el.gz
(defun org-cite-key-number (key info &optional predicate)
"Return number associated to string KEY.
INFO is the export communication channel, as a property list.
Optional argument PREDICATE is called with two keys, and returns non-nil
if the first reference should sort before the second. When nil, references
are sorted in order cited."
(let* ((keys (org-cite-list-keys info))
(sorted-keys (if (functionp predicate)
(sort keys predicate)
keys))
(position (seq-position sorted-keys key #'string-equal)))
(and (integerp position)
(1+ position))))