public List<Visit> getVisits() {
        List<Visit> sortedVisits = new ArrayList<>(getVisitsInternal());
        PropertyComparator.sort(sortedVisits, new MutableSortDefinition("date", false, false));
        return Collections.unmodifiableList(sortedVisits);
    }
Simple business object representing a pet.

@author Ken Krebs
@author Juergen Hoeller
@author Sam Brannen
src/main/java/org/springframework/samples/petclinic/model/Pet.java