//Sort regions alphabetically in ascending order
List<Region> sortedRegions = new ArrayList<Region>(domain.getRegions());
Collections.sort(sortedRegions, new RegionNameComparator());
for (Region region : sortedRegions) {
RegionModel regionModel = regionService.createRegionModel(region);
if (regionModel != null) {
regions.add(regionModel);
}
}
model.addAttribute("regions", regions);