Skip to content
Snippets Groups Projects
Commit a5336c72 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #641 - sort templates by template name

parent 24013f2b
Branches
Tags
No related merge requests found
......@@ -158,7 +158,7 @@ public class TemplateService implements Resettable, AccessAllEntities<Template>,
public List<Template> getAllEntitiesAsc()
{
final List<Template> templates = templateRepository.findAllByOrderByTemplateNameAsc();
templates.sort((t1, t2) -> new NaturalOrderComparator().compare(t1.getName(), t2.getName()));
templates.sort((t1, t2) -> new NaturalOrderComparator().compare(t1.getTemplateName(), t2.getTemplateName()));
return templates;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment