We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
EntityDescription.init()
1 parent f42790d commit 319b5b0Copy full SHA for 319b5b0
1 file changed
Sources/CoreModel/Entity.swift
@@ -46,12 +46,8 @@ public extension EntityDescription {
46
47
init<T: Entity>(entity: T.Type) {
48
let attributes = T.attributes
49
- .lazy
50
- .sorted { $0.key.stringValue < $1.key.stringValue }
51
.map { Attribute(id: .init($0.key), type: $0.value) }
52
let relationships = T.relationships
53
54
55
.map { $0.value }
56
self.init(id: T.entityName, attributes: attributes, relationships: relationships)
57
}
0 commit comments