Function: newsticker--cache-sort
newsticker--cache-sort is a byte-compiled function defined in
newst-plainview.el.gz.
Signature
(newsticker--cache-sort)
Documentation
Sort the newsticker cache data.
Source Code
;; Defined in /usr/src/emacs/lisp/net/newst-plainview.el.gz
;; ======================================================================
;;; Misc
;; ======================================================================
(defun newsticker--cache-sort ()
"Sort the newsticker cache data."
(let ((sort-fun (cond ((eq newsticker-sort-method 'sort-by-time)
'newsticker--cache-item-compare-by-time)
((eq newsticker-sort-method 'sort-by-title)
'newsticker--cache-item-compare-by-title)
((eq newsticker-sort-method 'sort-by-original-order)
'newsticker--cache-item-compare-by-position))))
(mapc (lambda (feed-list)
(setcdr feed-list (sort (cdr feed-list)
sort-fun)))
newsticker--cache)))