Restore compare method on HashBean.