Code review fix to compareTo.