Function: org-cmp-values

org-cmp-values is a byte-compiled function defined in org-agenda.el.gz.

Signature

(org-cmp-values A B PROPERTY)

Documentation

Compare the numeric value of text PROPERTY for string A and B.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defsubst org-cmp-values (a b property)
  "Compare the numeric value of text PROPERTY for string A and B."
  (let ((pa (or (get-text-property (1- (length a)) property a) 0))
	(pb (or (get-text-property (1- (length b)) property b) 0)))
    (cond ((> pa pb) +1)
	  ((< pa pb) -1))))