chickadee » data-structures » string-compare3

(string-compare3 STRING1 STRING2) procedure
(string-compare3-ci STRING1 STRING2) procedure

Perform a three-way comparison between the STRING1 and STRING2, returning one of <0 if STRING1 is lexicographically less than STRING2, =0 if it is equal, or >0 if it s greater. string-compare3-ci performs a case-insensitive comparison.