for (Map.Entry<Set<ServiceIdActivation>, List<ServiceDate>> entry : datesByServiceIds.entrySet()) {
Set<ServiceIdActivation> serviceIds = entry.getKey();
List<ServiceDate> serviceDates = entry.getValue();
Collections.sort(serviceDates);
summaries.add(new ServiceDateSummary(serviceIds, serviceDates));
}
Collections.sort(summaries);
return summaries;