Fix for search on types that implement a non-standard comparison method.

Spire search was throwing a match error on types where the result of compare could be an integer outside of the set {-1, 0, 1} such as String.