Function: newsticker--cache-item-compare-by-time
newsticker--cache-item-compare-by-time is a byte-compiled function
defined in newst-backend.el.gz.
Signature
(newsticker--cache-item-compare-by-time ITEM1 ITEM2)
Documentation
Compare two news items ITEM1 and ITEM2 by comparing their time values.
Source Code
;; Defined in /usr/src/emacs/lisp/net/newst-backend.el.gz
;; ======================================================================
;;; Sorting
;; ======================================================================
(defun newsticker--cache-item-compare-by-time (item1 item2)
"Compare two news items ITEM1 and ITEM2 by comparing their time values."
(catch 'result
(let ((age1 (newsticker--age item1))
(age2 (newsticker--age item2)))
(if (not (eq age1 age2))
(cond ((eq age1 'obsolete)
(throw 'result nil))
((eq age2 'obsolete)
(throw 'result t)))))
(time-less-p (newsticker--time item2)
(newsticker--time item1))))