Function: string-greaterp
string-greaterp is a byte-compiled function defined in subr.el.gz.
Signature
(string-greaterp STRING1 STRING2)
Documentation
Return non-nil if STRING1 is greater than STRING2 in lexicographic order.
Case is significant. Symbols are also allowed; their print names are used instead.
Other relevant functions are documented in the comparison and string groups.
Probably introduced at or before Emacs version 25.1.
Shortdoc
;; string
(string-greaterp "foo" "bar")
=> t
;; comparison
(string-greaterp "abd" "abc")
=> t
(string-greaterp "abc" "abc")
=> nil
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun string-greaterp (string1 string2)
"Return non-nil if STRING1 is greater than STRING2 in lexicographic order.
Case is significant.
Symbols are also allowed; their print names are used instead."
(declare (pure t) (side-effect-free t))
(string-lessp string2 string1))