Migrated Compare code to Character::Compare () for better sharing