consistent behavior for equals() and compareTo
Authored by: grether 2010-11-15
Parent: [r13421]
Child: [r13423]