Helper functions for clojure.core/compare.