}
if (typeof a === 'string' || typeof b === 'string') {
// so we have to use the string comparison which ignores case.
const aValue = (typeof a === 'string' ? a : a.value);
const bValue = (typeof b === 'string' ? b : b.value);
return strings.equalsIgnoreCase(aValue, bValue);
}
// Now we know both arguments are ExtensionIdentifier