matrei commented on code in PR #15097:
URL: https://github.com/apache/grails-core/pull/15097#discussion_r2377945071


##########
grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/services/transform/ServiceTransformation.groovy:
##########
@@ -185,20 +185,20 @@ class ServiceTransformation extends 
AbstractTraitApplyingGormASTTransformation i
 
         List<FieldNode> propertiesFields = []

Review Comment:
   - Use a sorted set from the start? Would eliminate the need to sort after 
the loop.
   ```groovy
   // Use sorted set to ensure consistent ordering for build reproducibility
   def propertiesFields = new TreeSet<FieldNode>({ FieldNode a, FieldNode b -> 
a.name <=> b.name })
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to