Ignore:
Timestamp:
May 11, 2011, 4:35:23 PM (9 years ago)
Author:
work@…
Message:
  • solves in part #423
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r1794 r1836  
    210210
    211211        /**
    212          * Return all samples for a specific template
     212         * Return all samples for a specific template, sorted by subject name
    213213         * @param Template
    214214         * @return ArrayList
    215215         */
    216216        def ArrayList<Subject> giveSamplesForTemplate(Template template) {
    217                 samples.findAll { it.template.equals(template) }
     217                samples.findAll { it.template.equals(template) }.sort {
     218                        it.parentSubject.name
     219                }
    218220        }
    219221
Note: See TracChangeset for help on using the changeset viewer.