grails GSPで私は
2つのクラスがあります
class Test{
static hasMany = [testConfigs:TestConfig]
}
class TestConfig {
Date dateCreated
Date lastUpdated
Test test
static constraints = {
dateCreated display:false
lastUpdated display:false
questionType inList:["Fill in the blanks","Multipl choice","True False"]
}
}
testConfigsオブジェクトがdateCreatedフィールドで降順に取得されるように、各ループに対してforを変更するにはどうすればよいですか?