diff --git a/src/main/java/de/tudresden/inf/verdatas/xapitools/dave/analysis/controllers/AnalysisMavController.java b/src/main/java/de/tudresden/inf/verdatas/xapitools/dave/analysis/controllers/AnalysisMavController.java index c490207..b74b7e0 100644 --- a/src/main/java/de/tudresden/inf/verdatas/xapitools/dave/analysis/controllers/AnalysisMavController.java +++ b/src/main/java/de/tudresden/inf/verdatas/xapitools/dave/analysis/controllers/AnalysisMavController.java @@ -122,8 +122,12 @@ public RedirectView deleteAnalysis(@RequestParam("flow") UUID analysisId) { @GetMapping(BASE_URL + "/add") public ModelAndView showAddAnalysis() { ModelAndView mav = new ModelAndView("bootstrap/dave/analysis/detail"); - mav.addObject("possibleQueries", this.daveAnalysisService.getAllQueries().toList()); - mav.addObject("possibleGraphs", this.daveAnalysisService.getAllGraphDescriptions().toList()); + mav.addObject("possibleQueries", this.daveAnalysisService.getAllQueries() + .sorted(Comparator.comparing(DaveQuery::getName)) + .toList()); + mav.addObject("possibleGraphs", this.daveAnalysisService.getAllGraphDescriptions() + .sorted(Comparator.comparing(DaveGraphDescription::getName)) + .toList()); mav.addObject("method", "add"); return mav; }