CharacterTypeAttributes bAttrs = StringAttribute.characterTypeAttributes(typeB);
AkCollator collator = mergeAkCollators(aAttrs, bAttrs);
if (collator == null)
// TODO in the future, we may want to use some default collator. For now, just use native comparison
return sourceA.getString().compareTo(sourceB.getString());
return collator.compare(sourceA, sourceB);
}
@Override
public boolean attributeIsPhysical(int attributeIndex) {
return attributeIndex != StringAttribute.MAX_LENGTH.ordinal();