From ac6f373b3bc90da82fb8478d906c6e0814ee668f Mon Sep 17 00:00:00 2001 From: Christian Pich Date: Fri, 1 Mar 2024 10:32:00 +0100 Subject: [PATCH] add more secondary sorting elements --- .../org/alliancegenome/api/service/DiseaseESService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agr_api/src/main/java/org/alliancegenome/api/service/DiseaseESService.java b/agr_api/src/main/java/org/alliancegenome/api/service/DiseaseESService.java index ac2d96aff..ac527ce81 100644 --- a/agr_api/src/main/java/org/alliancegenome/api/service/DiseaseESService.java +++ b/agr_api/src/main/java/org/alliancegenome/api/service/DiseaseESService.java @@ -394,10 +394,9 @@ public JsonResultResponse getDiseaseAnnotationsWi // Sorting sets for different names of the sorting selection box Map> sortingSetMap = new HashMap<>(); - sortingSetMap.put("default", List.of("phylogeneticSortingIndex", - "subject.geneSymbol.displayText.keyword")); + sortingSetMap.put("default", List.of("viaOrthologyOrder","phylogeneticSortingIndex", "subject.geneSymbol.displayText.keyword")); sortingSetMap.put("gene", List.of("subject.geneSymbol.displayText.keyword", "phylogeneticSortingIndex")); - sortingSetMap.put("disease", List.of("object.name.keyword", "phylogeneticSortingIndex","subject.geneSymbol.displayText.keyword")); + sortingSetMap.put("disease", List.of("object.name.keyword", "phylogeneticSortingIndex", "subject.geneSymbol.displayText.keyword")); sortingSetMap.put("species", List.of("subject.taxon.name.keyword", "subject.geneSymbol.displayText.keyword")); LinkedHashMap sortingMap = new LinkedHashMap<>();