packageDocumentation module import { Primitives , PropertyDescription , StandardTypeNames } from "@itwin/appui-abstract" ; import { TypeConverter } from "./TypeConverter" ; import { TypeConverterManager } from "./TypeConverterManager" ; public export class NavigationPropertyTypeConverter extends TypeConverter { public override convertPropertyToString ( propertyDescription , value ? ) { return value === undefined ? "" : propertyDescription . displayLabel ; } public sortCompare ( a , b , ignoreCase ? ) { return TypeConverterManager . getConverter ( StandardTypeNames . Hexadecimal ) . sortCompare ( ( a as Primitives . InstanceKey ) . id , ( b as Primitives . InstanceKey ) . id , ignoreCase ) ; } } TypeConverterManager . registerConverter ( StandardTypeNames . Navigation , NavigationPropertyTypeConverter ) ;