List<TemplateGroup> (TemplateSettings templateSettings) { List<TemplateGroup> groups = new ArrayList<>(templateSettings.getTemplateGroups()); groups.sort((o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName())); return groups; }