diff --git a/Sources/OrderBy.swift b/Sources/OrderBy.swift index aed248c..39e92ee 100644 --- a/Sources/OrderBy.swift +++ b/Sources/OrderBy.swift @@ -262,7 +262,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Required { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Required { return .ascending(attribute(D.meta).keyPath) } @@ -270,7 +270,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Optional { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Optional { return .ascending(attribute(D.meta).keyPath) } @@ -278,7 +278,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Required { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Required { return .ascending(attribute(D.meta).keyPath) } @@ -286,7 +286,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in ascending order */ - public static func ascending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Optional { + public static func ascending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Optional { return .ascending(attribute(D.meta).keyPath) } @@ -294,7 +294,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Required { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Required { return .descending(attribute(D.meta).keyPath) } @@ -302,7 +302,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: ValueContainer.Optional { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: ValueContainer.Optional { return .descending(attribute(D.meta).keyPath) } @@ -310,7 +310,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Required { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Required { return .descending(attribute(D.meta).keyPath) } @@ -318,7 +318,7 @@ public extension OrderBy.SortKey where D: CoreStoreObject { /** Indicates that the `KeyPathString` should be sorted in descending order */ - public static func descending(_ attribute: (D) -> A) -> SortKey where A: TransformableContainer.Optional { + public static func descending(_ attribute: (D) -> A) -> OrderBy.SortKey where A: TransformableContainer.Optional { return .descending(attribute(D.meta).keyPath) }