Skip to content

Commit 319b5b0

Browse files
committed
Fix EntityDescription.init()
1 parent f42790d commit 319b5b0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Sources/CoreModel/Entity.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ public extension EntityDescription {
4646

4747
init<T: Entity>(entity: T.Type) {
4848
let attributes = T.attributes
49-
.lazy
50-
.sorted { $0.key.stringValue < $1.key.stringValue }
5149
.map { Attribute(id: .init($0.key), type: $0.value) }
5250
let relationships = T.relationships
53-
.lazy
54-
.sorted { $0.key.stringValue < $1.key.stringValue }
5551
.map { $0.value }
5652
self.init(id: T.entityName, attributes: attributes, relationships: relationships)
5753
}

0 commit comments

Comments
 (0)