File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ class ShapeValueGenerator(
221221 // this is important because when a struct is generated in swift it is generated with its members sorted by name.
222222 // when you instantiate that struct you have to call params in order with their param names. if you don't it won't compile
223223 // so we sort here before we write any of the members with their values
224- val sortedMembers = node.members.toSortedMap(compareBy<StringNode > { it.value })
224+ val sortedMembers = node.members.toSortedMap(compareBy<StringNode > { it.value.lowercase() })
225225 sortedMembers.forEach { (keyNode, valueNode) ->
226226 val memberShape: Shape
227227 when (currShape) {
You can’t perform that action at this time.
0 commit comments