Function: gnus-sort-threads-recursive
gnus-sort-threads-recursive is a byte-compiled function defined in
gnus-sum.el.gz.
Signature
(gnus-sort-threads-recursive THREADS FUNC)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-sort-threads-recursive (threads func)
;; Responsible for sorting the root articles of threads.
(let ((subthread-sort-func (if (eq gnus-subthread-sort-functions
'gnus-thread-sort-functions)
func
(gnus-make-sort-function
gnus-subthread-sort-functions))))
(sort (mapcar (lambda (thread)
(cons (car thread)
(and (cdr thread)
(gnus-sort-subthreads-recursive
(cdr thread) subthread-sort-func))))
threads)
func)))