Skip to content

Commit

Permalink
add more secondary sorting elements
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpich committed Mar 4, 2024
1 parent 63b9a5d commit ac6f373
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,9 @@ public JsonResultResponse<GeneDiseaseAnnotationDocument> getDiseaseAnnotationsWi

// Sorting sets for different names of the sorting selection box
Map<String, List<String>> 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<String, SortOrder> sortingMap = new LinkedHashMap<>();
Expand Down

0 comments on commit ac6f373

Please sign in to comment.