Bug Fix to operator definitions

Use spaceship operator not equality/comparison to work as expected