keyPath The key path that specifies the property to compare during sorting. Declarationvar keyPath: AnyKeyPath? { get } See AlsoGetting Information About a Sort Descriptorascendingkeyselectorcomparator