lexicographic cmps x y compares x and y lexicographically using functions in the list cmps.
lexicographic cmps x y
x
y
cmps
Check_sexp_conversion