User user = userService.getUserFromSecurityContext();
List<Application> applications = userService.getApplicationsForUser(user, userAgentInfo.getApplicationType());
ComparatorChain chain = new ComparatorChain();
chain.addComparator(new ApplicationNameComparator());
chain.addComparator(new ApplicationDescriptionComparator());
Collections.sort(applications, chain);
List<ApplicationModel> applicationModels = applicationService.createApplicationModels(applications, false);
model.addAttribute("applications", applicationModels);