defined compareTo but not equals/hash (Coverity)