Function: reftex-bib-sort-author
reftex-bib-sort-author is a byte-compiled function defined in
reftex-cite.el.gz.
Signature
(reftex-bib-sort-author E1 E2)
Documentation
Compare bib entries E1 and E2 by author.
The name of the first different author/editor is used.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-cite.el.gz
(defun reftex-bib-sort-author (e1 e2)
"Compare bib entries E1 and E2 by author.
The name of the first different author/editor is used."
(let ((al1 (reftex-get-bib-names "author" e1))
(al2 (reftex-get-bib-names "author" e2)))
(while (and al1 al2 (string= (car al1) (car al2)))
(pop al1)
(pop al2))
(if (and (stringp (car al1))
(stringp (car al2)))
(string< (car al1) (car al2))
(not (stringp (car al1))))))