Function: newsticker--cache-item-compare-by-title

newsticker--cache-item-compare-by-title is a byte-compiled function defined in newst-backend.el.gz.

Signature

(newsticker--cache-item-compare-by-title ITEM1 ITEM2)

Documentation

Compare ITEM1 and ITEM2 by comparing their titles.

Source Code

;; Defined in /usr/src/emacs/lisp/net/newst-backend.el.gz
(defun newsticker--cache-item-compare-by-title (item1 item2)
  "Compare ITEM1 and ITEM2 by comparing their titles."
  (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)))))
    (string< (newsticker--title item1) (newsticker--title item2))))